so a very short question, what is the syntax to stop 1 row from scrolling in a 16x2 lcd? since i only need the 2nd row to scroll to the left but they're both scrolling towards to the left.
Program it that way
Can you take a look at my code and see what's the problem?
Here is my Code:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
//float value
float temp1;
float temp2;
float tempD;
//lm35
int sensor = 0;
int sensor2 = 1;
//string temp
String Temp1 = "T1:";
String Temp2 = "T2:";
String TempD = "TD:";
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.begin(16, 2);
lcd.backlight();
temp1 = analogRead(sensor);
temp1 = temp1 * 0.48828125;
temp2 = analogRead(sensor2);
temp2 = temp1 * 0.48828125;
tempD = temp1 - temp2;
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0, 0);
lcd.print("Temp. Difference");
lcd.setCursor(16, 1);
lcd.scrollDisplayLeft();
lcd.print(Temp1);
lcd.print(temp1);
lcd.print(Temp2);
lcd.print(temp2);
lcd.print(TempD);
lcd.print(tempD);
delay(300);
}
(deleted)