uchar code ditab[16]=0x00,0x01,0x01,0x02,0x03,0x03,0x04,0x04,0x05,0x06,0x06,0x07,0x08,0x08,0x09,0x09; 可以详细点吗?谢谢,我不是很懂得怎么改
//小数断码表
uchar code table_dm[12]=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00,0x40;
//共阴 LED 段码表 "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "不亮" "-"
uchar table_dm1[]=0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef;
//个位带小数点的断码表
uchar data temp_data[2]=0x00,0x00; //读出温度暂放
uchar data display[5]=0x00,0x00,0x00,0x00,0x00; //显示单元数据,共 4 个数据和一个运算暂用
共阳极:
位选为高电平(即1)选中数码管,
各段选为低电平(即0接地时)选中各数码段, 由0到f的编码为: uchar code table[]= 0xc0,0xf9,0xa4,0xb0, 0x99,0x92,0x82,0xf8,
0x80,0x90,0x88,0x83, 0xc6,0xa1,0x86,0x8e;
参考知识1
把数组的按位去反。如0x00改为0xff
参考知识B
反过来嘛!!追问