#define jump_ROM 0xCC
#define start 0x44
#define read_EEROM 0xBE
unsigned char code table[12] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00,0x40};
unsigned char code tabld[10] = {0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef};
顯示℃,要把數(shù)碼管反過(guò)來(lái)使用。圖中最后一個(gè)數(shù)碼管和前面的方向不一樣。
喂我袋鹽 發(fā)表于 2023-9-3 13:51
大佬,建議全大寫
喂我袋鹽 發(fā)表于 2023-9-3 13:55
P2 = table[x];
P2 = tabld[x];
wryp 發(fā)表于 2023-9-3 14:29
這是做了一個(gè)表
0x3f 顯示 0
0x06 顯示1
喂我袋鹽 發(fā)表于 2023-9-3 15:53
我是想說(shuō),定義時(shí),code是啥類型?
wryp 發(fā)表于 2023-9-3 16:13
code table 連在一起,代碼表
喂我袋鹽 發(fā)表于 2023-9-3 16:16
P2 = table[x];
P2 = tabld[x];
歡迎光臨 機(jī)械社區(qū) (http://www.ytsybjq.com/) | Powered by Discuz! X3.5 |