SBUF=LED_0F[];這裡無法編譯.. 可能是SBUF=LED_0F[i]吧 ...
看樣子您手機端的APP是收發ASCII 格式的 ...而code LED_0F[]內有非ASCII 的對應碼,,
將LED_0F[]改成
unsigned char code LED_0F[] = { //0 1 2 3 4 5 6 7 8 9 A b C d E F -
// 0x01, 0x21, 0x31, 0x41, 0x51, 0x61, 0x71, 0x81, 0x91, 0xA1, 0xB1, 0xC1, 0xD1, 0xE1, 0xF1, 0x8E, 0xbf
0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x41,0x42,0x43,0x44,0x45,0x46};
試看看 |