#NEWLINE# def setDisplay( self , state ) : #NEWLINE# #INDENT# " Turns the display on if state is LiquidCrystal.ON, off if state is\n        LiquidCrystal.OFF. Turning off the display will preserve the characters\n        currently in the display's RAM. " #NEWLINE# if ( state == self . ON ) : #NEWLINE# #INDENT# self . _display_ctrl |= self . DISPLAYCONTROL_ON #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _display_ctrl &= ( ~ self . DISPLAYCONTROL_ON ) #NEWLINE# #UNINDENT# self . writeCommand ( ( state . COMMAND_DISPLAYCTRL | self . _display_ctrl ) )