//DISPLAY 7 SEGMENTOS PIC18F4550
void main() {
unsigned short NUMERO[]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7C,0x07,0x7F,0x67};
trisc.f0=1;
trisd=0;
portd=0;
while(1){
int k=0;
for(k=0; k<=9; k++){
portd=NUMERO[k];
delay_ms(200);
}
for(k=8; k>=0; k--){
portd=NUMERO[k];
delay_ms(200);
}
}
}
No hay comentarios:
Publicar un comentario