英文字母在數碼管顯示中的對照字符
常用數碼管顯示數組
(一)共陽極數碼管編碼表:
(內容為十六進制)
unsigned char code smg[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e};
(內容為'熄滅',' - ',' .')
unsigned char code smg_str[]={0xff,0xbf,0x7f};
(內容為十六進制帶小數點)
unsigned char code smg_point[]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x78,0x00,0x10,0x08,0x03,0x46,0x21,0x06,0x0e};
(二)共陰極數碼管編碼表:
(內容為十六進制)
unsigned char code smg[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
(內容為'熄滅',' - ',' .')
unsigned char code smg_str[]={0x00,0x40,0x80};
(內容為十六進制帶小數點)
unsigned char code smg_point[]={0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef,0xf7,0xfc,0xb9,0xce,0xf9,0xf1};
如有錯誤請指正