I have a project that im working on, and the display show some numbers i always want to be in the center. This number start out small, and gets bigger over time. So if i use lcd.setCursor . It will only be in the center for a short while. Is there any code that can do this?
So if i use lcd.setCursor . It will only be in the center for a short while. Is there any code that can do this?
Of course. It's called math.
You need to know how many characters you are going to write, so you can divide that number by 2, to get an offset, so you can set the cursor to the center minus the required offset.