Tanmay_Karmakar
New Member
I've been trying to work with a 2d array as mentioned 26 rows and 8 columns each. But the same error msg is poping up at compilation. What should I do?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
the official Arduino forums (at https://forum.arduino.cc/) has many more active Arduino users than here.
Exactly I tried the forum previously for another solution, I don't like it there... .. if you can get past their egos !
MM
I've tried initializing them both globally and in a separately created library in the following format:How are you initialising them?
I've tried with unsigned char data type, and just B instead of 0b just works fine.Try,
Code:char test[2][8] = { 1,2,3,4,5,6,7,8, 1,2,3,4,5,6,7,8 };
Mike.
Edit, what is the error message?
Edit2, Your binary numbers need 0b in front of them.
"too many initializers for byte alphabet[26][8]};So, what is the error message?
Mike.
Ok.. got it.. I will look into that...Okay... Show me the array that holds the alphabet... It says there are too many items in the init part
ie..
someArray[2][2] = { 1,2,3,4,5 } ; <--- too may initialisers..
Code goes here
Ex
Exactly I tried the forum previously for another solution, I don't like it there.
However, I've attached the main part of the program and as for the array declaration and initialization I'm pretty sure there's no problem except if there's too many array elements to hold .
I've tried initializing the 2d array both globally and in a separate library file, the same results keep coming up.