I want the bottom row of my LCD to display the counting function and include text:
lcd.setCursor(0, 1); lcd.print("Launch in"millis()/1000);
But it comes out with an error, what part is wrong?
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It only takes a minute to sign up.Sign up to join this community
The last line in the code you provided won't compile.
lcd.print() function expects a char, byte, int, long or string (taken from the LiquidCrystal docs) and you're trying to combine a string and an int which the compiler isn't going to understand.
The easiest way to print both would be to have two lcd.print statements:
lcd.print("launch in "); lcd.print(millis()/1000);
Most of this is taken from quickly googling displaying time on an lcd screen. Check out this forum post, it seems similar to what you want to do: click me!