#NEWLINE# def setCursor( self , state , blink ) : #NEWLINE# #INDENT# ' Set cursor visibility with state = LiquidCrystal.ON or \n        LiquidCrystal.OFF, set cursor blinking with blink = LiquidCrystal.BLINK\n        or LiquidCrystal.NOBLINK. ' #NEWLINE# if ( blink == self . ON ) : #NEWLINE# #INDENT# self . _display_ctrl |= self . DISPLAYCONTROL_CURSORON #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _display_ctrl &= ( ~ self . DISPLAYCONTROL_CURSORON ) #NEWLINE# #UNINDENT# if ( blink == self . BLINK ) : #NEWLINE# #INDENT# self . _display_ctrl |= self . DISPLAYCONTROL_CURSORBLINK #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _display_ctrl &= ( ~ self . DISPLAYCONTROL_CURSORBLINK ) #NEWLINE# #UNINDENT# self . writeCommand ( ( self . COMMAND_DISPLAYCTRL | self . _display_ctrl ) )