Suthiwas
(Move to ...)
Home
▼
Wednesday, December 26, 2018
T1
{
unsigned char dice[]={0x08,0x22,0x2A,0x55,0x5D,0x77};
unsigned char i;
TRISC=0;
TRISB=0x01;
PORTC=0;
while(1)
{
if(PORTB.F0==0)
{
PORTC=dice[i];
delay_ms(3000);
PORTC=0;
}
i++;
if(i>5)i=0;
}
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment