熱門: 51單片機(jī) | 24小時(shí)必答區(qū) | 單片機(jī)教程 | 單片機(jī)DIY制作 | STM32 | Cortex M3 | 模數(shù)電子 | 電子DIY制作 | 音響/功放 | 拆機(jī)樂園 | Arduino | 嵌入式OS | 程序設(shè)計(jì)
![]() |
發(fā)布時(shí)間: 2019-4-2 10:02
正文摘要:#include <reg52.h> #define uchar unsigned char #define uint unsigned int #include <intrins.h> uchar a_a; uchar code smg_du[]={0x28,0xee,0x32,0xa2,0xe4,0xa1,0x2 ... |
改數(shù)組 |
明顯原理圖與程序不匹配,樓主得提供電路圖才好修改 |
改為: uchar code smg_du[]={//共陽數(shù)碼管段碼"0~f" 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8, 0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}; uchar dis_smg[4];//顯示數(shù)字緩存 |
是共陰的還是共陽的不要搞反 |
uchar code smg_du[]={0x28,0xee,0x32,0xa2,0xe4,0xa1,0x21,0xea,0x20,0xa0, 0x60,0x25,0x39,0x26,0x31,0x71,0xff}; 把這里改一下 |
Powered by 單片機(jī)教程網(wǎng)