Simple MAX7219 example
The first thing you will need that makes things easier is to download and install the LedControl Arduino library as it is essential for using the MAX7219. Code #include…
The first thing you will need that makes things easier is to download and install the LedControl Arduino library as it is essential for using the MAX7219. Code #include…
Similar to the previous single colour LED example this is for an RGB led, we use pin 6, 7 and 8 Code //simple button GET server code to control…
This requires an ethernet shield and an LED connected to pin 6. Copy the code into a new sketch and upload it to your arduino and then open your web…
While browsing through the mikroelectronika website and looking at available downloads, I noticed their Basic compilers for various microcontroller architectures. So after downloading the 8051 version and installing lets look…
Its fairly straightforward to connect a 7 segment display to your 8051 processor, in this example we will do this and show a code example which cycles through the numbers…
In this example we connect an RGB LED to our 8051. In this case we used an RGB LED breakout, this was a common anode device. The schematic below shows…
Recently I purchased several 8051 type development boards from China, most of the examples were written in Keil. As a test I decided to see if i could get any…
A very simple example that toggles a set of 8 LEDs based on whether a switch is pressed or not The switch is connected to Port 3.0, the LEDs are…
This is a hexadecimal counter using LEDs. It will start at 0xFF and count down 1 Code #include <reg52.h> void delay(unsigned int i); main() { unsigned char Num =…
Again using the ARm + 8051 development board Example 1 #include<reg52.h> void Delay(unsigned int t); void main (void) { unsigned char i; Delay(50000); P2=0x7f; while (1) { for(i=0;i<8;i++) { Delay(50000);…