Friday, December 7, 2012


Propeller project.
#include<reg51.h>
  sfr leds=0xB0;
  unsigned int i;
  void main()
  {
   leds=0x00;
   while(1)
   {
    leds=0xFE;
leds=0x14;
leds=0x12;
leds=0x12;
leds=0x14;
leds=0xF8;
for(i=0;i<10;i++);
leds=0xFE;
leds=0x04;
leds=0x04;
leds=0x08;
leds=0x10;
leds=0x20;
leds=0xFE;
for(i=0;i<10;i++)
leds=0xFE;
leds=0x14;
leds=0x12;
leds=0x12;
leds=0x14;
leds=0xF8;
for(i=0;i<10;i++);
leds=0xFE;
leds=0x04;
leds=0x04;
leds=0x08;
leds=0x10;
leds=0x20;
leds=0xFE;
for(i=0;i<10;i++)
    leds=0xFE;
leds=0x82;
leds=0x44;
leds=0x38;
  }
}