I have 5o arrays & each it has 10 elements.Is there any easy way of calling this array one by one when a button pressed?
Ex;when the button press call Msg1, press again call Msg2...etc...
I use PIC16F886 with MikroC Compiler.
Ex;when the button press call Msg1, press again call Msg2...etc...
Code:
char Msg1[] = {1,2,3,4,5,6,7,8,9,10};
char Msg2[] = {5,2,6,8,5,6,7,4,9,5};
char Msg3[] = {5,2,3,5,5,6,7,8,9,4};
char Msg4[] = {6,6,3,4,5,6,7,8,9,10};
char Msg5[] = {4,2,3,5,5,4,5,8,9,4};
char Msg6[] = {1,6,3,6,5,6,7,6,9,10};
----
char Msg50[] = {1,6,3,4,5,6,7,8,9,6};
I use PIC16F886 with MikroC Compiler.