I'm brand new to the Arduino world, so I jumped right in and started making something probably above my skill set. I think I exhausted my googling skills to find an answer or I'm just really bad at it, but I think it has to do with "padding" my value so it overwrites the previous value, but I'm just not sure.
Situation:
Analog reading FSR sensors to integer values.
Printing them to a LCD 1602
Issue:
Unless I use "lcd.clear()" at the end of my loop, my double-digit values will overlap the single-digit values with an extra number at the end. I just noticed how noticeable the clearing was, that I thought maybe there was a better way?
Also, my literacy for coding is really low, so feel free to tell me the right way to do things.
//LCD print
lcd.setCursor(0,0);
lcd.print(array1);
lcd.setCursor(0,1);
lcd.print(FSR1val);
lcd.setCursor(6,0);
lcd.print(array2);
lcd.setCursor(6,1);
lcd.print(FSR2val);
lcd.setCursor(12,0);
lcd.print(array3);
lcd.setCursor(12,1);
lcd.print(potVal);
//reset
delay(timer);
**lcd.clear(); THIS WORKS, BUT NOT SURE IF ITS CORRECT**
7 posts - 3 participants