00001
00002
00003
00004
00005
00006 #include "piccolo_all.h"
00007 #include <delays.h>
00008
00020 const char a[]={0x01,0x03,0x07,0x06,0x0E,0x0C,0x08,0x0C,0x0E,0x06,0x07,0x03};
00021 char i,j;
00022 void main(void) {
00023 LEDport=0;
00024 LEDtris=0;
00025 #if defined(__18F14K50)
00026 while (SW1) {
00027 #else
00028 while (1) {
00029 #endif
00030 for (LEDport=j=0; j<12; j++) {
00031 LEDport = 0x01;
00032 Delay10KTCYx(5);
00033 LEDport = 0;
00034 Delay10KTCYx(80);
00035 }
00036 for (i=j=0; j<44; j++) {
00037 LEDport=a[i];
00038 Delay10KTCYx(60);
00039 i++;
00040 if (i>11) i=0;
00041 }
00042
00043 }
00044 Reset();
00045 }