I have this code below which will get analog reading but when I get past the screen size I can scroll up and down to see past results.
I want to print these results onto a GLCD the ks0108B and be able to scroll to see all my results how can I do this?
Right now my only idea is to store my results on an array then have a tactile switch to allow me to change what part of the array is shown on the screen. Any suggestions on any better method would be really appreciated!!!
int o= 0;
void setup() {
Serial.begin(9600);
}
void loop() {
delay(100);
int sensorValue = analogRead(A0);
if (o == 0) {
Serial.println(sensorValue, DEC);
}
if (sensorValue == 0) {
o = 1;
}
else {
o= 0;
}
}