I'm testing a 16*16 LED array. And my sample code got small problems during my compiling. I'm really not a software guy. And need someone to correct it for me.
Here is my code. When I click compile, it shows:
LED_test:85: error: too many initializers for 'byte [35]'
LED_test:138: error: expected ',' or ';' before 'void'
I believe my bad code is here:
byte showLOGO[35]=
{
37,//长度
0x30,0xA1,0xA5,0xBE,//设备号
0x07,//命令号
//点阵数据
0x00,0x00,
0x22,0x78,
0x36,0x44,
0x2A,0x44,
0x22,0x44,
0x22,0x44,
0x22,0x78,
0x00,0x00,
0x87,0xDF,
0x84,0x11,
0x84,0x11,
0x87,0x91,
0x84,0x1F,
0x84,0x10,
0xF7,0xD0,
0x00,0x00
};
byte charOf[]={'0','1','2','3','4','5','6','7','8','9',}
Can someone help to correct it to me?
LED_test.ino (4.98 KB)