// Test
const unsigned short lettre[16] = { 0xFF, 0x01, 0xEE, 0xEE, 0xEE, 0x01, 0xFF, 0xFF, //A
0xFF, 0x00, 0x76, 0x76, 0x76, 0x89, 0xFF, 0xFF //B
};
unsigned short repeat;
unsigned short num;
unsigned short count;
unsigned short colon;
void main(){
TRISC=0;
TRISD=0;
PORTC=0;
PORTD=0;
while(1){
for (num = 0; num < 2; num++){
for(repeat = 0; repeat < 100; repeat++){
colon = 1;
for(count= num*8; count < (num*8 + 9); count++){
PORTD = Lettre[count];
PORTC = colon;
delay_ms(1);
colon = colon << 1;
}
}
}
}
}