Hello,
I am converting some working code for a PIC microcontroller to an Arduino.
I have an array defined as such:
char motor_speed[6][5]={"500", "1000", "1500", "2000", "2500", "3000"};
I call the function like this:
get_item( &speed_code, &motor_speed, "-Enter Motor Speed-", "RPM", 6, 5 );
The function is defined like this, and I can step through the values.
int get_item( byte *code, char *list, char *heading, char *units, byte count, int length )
list += length ;
The compiler is giving me an error:
error: cannot convert 'char ()[6][5]' to 'char' for argument '2' to 'int get_item(byte*, char*, char*, char*, byte, int)'
How do I pass arrays? The code needs to be generic, One array may be [6][5], another [3][8].
Thank you,