Well i am making some progress. Thank you
To work with this i try to debug it using the Serial Monitor.
My problem is that i get this Æ thingy appearing on my output for ptss and ptst. I bolded the main problem.
libarary BLAH BLAh
char sec2[60][1] = {
0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 3, 3,
4, 4, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6,
7, 7}; //Tables
char sec1[60][1] = {
0, 1, 2, 3, 4, 5, 6, 7,
0, 1, 2, 3, 4, 5, 6, 7,
0, 1, 2, 3, 4, 5, 6, 7,
0, 1, 2, 3, 4, 5, 6, 7,
0, 1, 2, 3, 4, 5, 6, 7,
0, 1, 2, 3, 4, 5, 6, 7,
0, 1, 2, 3, 4, 5, 6, 7,
0, 1}; //Tables
void setup() {
blah blah blah for serial output
}
void digitalClockDisplay(){
Serial.print(second()); // digital clock display of the time
Serial.print(" ");
Serial.print(*ptss); //Displays one number of the first Array
Serial.print(",");
Serial.print(*ptst); //Displays one number of the second Array
Serial.println();
}
void loop(){
digitalClockDisplay(); //Outputs the stuff in digitalClockDisplay on the serial monitor
char *ptss = sec1[second()];
char *ptst = sec2[second()];
// lc.setLed(0,*ptss,true);
}
delay(1000);
}
I should be getting things like
01 00,01
02 00,02
..
59 07,00
00 07,01
but i get
01 Æ,Æ
02 Æ,Æ
...
59 Æ,Æ
00 Æ,Æ