单片机c语言编程,求助大神!! 请将每个按键进行8421编码,比1号键对应0001

2024-12-02 13:47:35
推荐回答(1个)
回答1:

#include
unsigned char QT;
unsigned char ledtab={0xfe,0xfc,0xf8,0xf0,0xe0,0xc0};
delay(unsigned int x)
{
unsigned int i,j;
for(i=0;ifor(j=0;j<125;j++);
}
main()
{