Flickering display without using lcd.clear()


hi all,

i know there's bunch of posts around deal flickering lcd displays, in case i'm not using lcd.clear() function , i'm updating screen under specific conditions.

i'm working finite state machine. within loop() function, within 1 state, have lines below. number nn can updated within same state, trigger update on lcd screen. don't understand why screen flickering code. if didn't use update condition (nn changed), i  believe lcd should not flickering if don't clear screen, right?

 
code: [select]
if (nn==1 || lastnncount != nn) {  // update position on lcd if necessary
        lcd.setcursor(0, 0);
        lcd.print("press again: set++.");
        lcd.setcursor(0, 1);
        lcd.print("or press start.");
        lcd.setcursor(0, 2);
        lcd.print("set: ");
        lcd.setcursor(6, 2);
        lcd.print(nn, dec);
      }

hi.

you're not showing enough code.
your problem might related update rate of "lastnncount", isn't part of function.
it should updated, , info have @ moment, need update in function.
but absolutely needs updated before next iteration.
i can't tell if updated @ all.


Arduino Forum > Using Arduino > Displays > Flickering display without using lcd.clear()


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor