Help! 16*16 LED array error by using byte[]

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)

Edit your sketch to say:

byte showLOGO[38]=
{
  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
};

It looks as if the first byte in the array is the size followed by the data.
e.g. 1 byte for the size followed by 37 bytes of data equals 38 total.

Please use the CODE button when posting code. (top-left icon)

David.

Thanks a lot David! It works!!