def setCursor(self, state, blink):
    if state == self.ON:
      self._display_ctrl |= self.DISPLAYCONTROL_CURSORON
    else: 
      self._display_ctrl &= ~self.DISPLAYCONTROL_CURSORON
    if blink == self.BLINK:
      self._display_ctrl |= self.DISPLAYCONTROL_CURSORBLINK
    else: 
      self._display_ctrl &= ~self.DISPLAYCONTROL_CURSORBLINK
    self.writeCommand(self.COMMAND_DISPLAYCTRL | self._display_ctrl)
Set cursor visibility with state = LiquidCrystal.ON or 
dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/LiquidCrystal/LiquidCrystal.py/LiquidCrystal.setCursor