Hi lads
I'm busy on a lilte project and since my Serial LCD doesn't support "println" i have to move the cursor manualy in some cases .
And this is the code i came up with but i cant seem to make an integer of it that can count ... could anyone help me out pleas ?
Thanks in advance !
Greetings
i++;
if (i==1){
moveCursor("01", "06");
}
if (i==2){
moveCursor("01", "07");
}
if (i==3){
moveCursor("01", "08");
}
if (i==4){
moveCursor("01", "09");
}
if (i==5){
moveCursor("01", "10");
}
void moveCursor(char* row, char* column){
// row
// 01=First Line -> 02=Second Line
// column
// 01=First Position -> 16=Last Position
Serial.write(0xFE);
Serial.print("L");
Serial.print(row);
Serial.print(column);
}
Thx for the reply's already but what i'm trying to do is simulate a serial.println() for my IoBridge Serial LCD (it doens't support serial.println(); )
so actualy i whanted to do it like this
This code wil be runned when a key gets pressed
int keycount = 5;
i++;
if (i<5){
keycount++
moveCursor("01", keycount);
serial.print(key);
}