51單片機C編程(三、4位數(shù)碼管飛入效果)
#include
#define uchar unsigned char
#define LED P0
uchar code tab[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xff};//共陽數(shù)碼管數(shù)字碼
uchar disp1[8][4]={{8,10,10,10},{0,8,10,10},{5,0,8,10},{1,5,0,8},{10,1,5,0},{10,10,1,5},{10,10,10,1},{10,10,10,10}};
uchar scan;
void delay1ms(int);
void display(int);
void main()
{
}
void display(int m)
{
}
void delay1ms(int x)
{
}
評論