AVR128的程序——獨立按鍵控制數(shù)碼管0~99遞增
#define uchar unsigned char
#define uint unsigned int
void Delayus(uint US);
void Delayms(uint MS);
void display(uchar FirstBit,uchar Num);
uchar TempData[8];
uchar WeiMa[8] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
uchar led_discode[11]={0xc0,0xf9,0xa4,0xb0,0x99,
void main(void)
{
}
void display(uchar FirstBit,uchar Num)
{
for(i=0;i
{
PORTC=led_discode[10];
Delayms(5);
}
}
void Delayms(uint MS)
{
}
void Delayus(uint US)
{
}
關(guān)鍵詞:
AVR128獨立按鍵數(shù)碼
評論