See this mapping table to get clear understanding
Code:
void main()
{
char patterns[]={63,6,91,79,102,109,125,7,127,111} ;
unsigned char i ;
TRISD = 0 ; PORTD = 0 ;
while(1)
{
for(i = 0 ; i <= 9 ; i++)
{
PORTD = patterns[i] ;
Delay_ms(500) ;
}
}
}
No comments:
Post a Comment