Hi All
I put together the 7th project in the Arduino project book and unfortunately i cannot get the code to compile, this is the trouble some code:
int buttons[6]; int buttons[0] = 2;
that's how its written in the book, when i try to verify the code i get this error
project_7_keyboard:3: error: conflicting declaration 'int buttons [0]'
project_7_keyboard:1: error: 'buttons' has a previous declaration as 'int buttons [6]'
now I can see that the compiler thinks I am trying to declare 2 separate int variables as buttons, but the book teaches that this is how you assign value to the first element of the array.
can i please have some advice.
Thanks
Erny