nest duty cycle works

Need to change the lcd state code to work on lines and not screens. It's
not uncommon for the lines on screen to become flipped.