Can I make my LCD blink 2 cells at once?

Hey everyone,

I'm building a temperature controller using a 16x2 LCD as a display. I have my menus functioning and displaying data how I want but in my settings section to set the temperature I would like to have the current number blink to indicate its an editable field when you cycle through the menu. Im using the Arduino LiquidCrystal library and I'm aware of the blink function but I can only seem to get 1 cell to blink. That would be fine if the number was only 1 digit, but its 2! I would really like to have 2 adjacent cells blink simultaneously if its possible.

Any help or guidance appreciated! Sample line of code for current blink function below

      if (State_Setting == 0){
          lcd.clear();
          lcd.setCursor(0,0);
          lcd.print("SET TEMPERATURE ");
          lcd.setCursor(5,1);
          lcd.print(EEPROM.read(1));
          lcd.setCursor(8,1);
          lcd.print("F");
          lcd.setCursor(5,1); //This and the line below are all that really matter here
          lcd.blink();
}

Print the line with the characters, delay, print the line without them, repeat.

1 Like

Hello

Here is an example : t1027262.ino - Wokwi Arduino and ESP32 Simulator

1 Like

Im not sure why this hadn't crossed my mind, I was too wrapped up trying to use the built in blink function in the library but this is definitely easier and just as effective. Thanks!

Fantastic example... thank you!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.