I'm getting confused on pointer and arrays and hopefully someone may shine some light.
I have the following arrays:
const prog_char array1[] PROGMEM ={0x00,0x01};
const prog_char array2[] PROGMEM ={0x00,0x01};
My function uses the array:
void test(const prog_char *iptr)
{
//Do something with iptr
}
Everything is well until here. I can call test(array1); and everything works as expected.
Now, I'd like to have an array like this:
const prog_char *myarray[] PROGMEM= {array1,array2};
How do I need to call my test() function and pass myarray[0] as argument?
Thanks in advance!!!
RI