def sleep(self):
    self.send_command(VCOM_AND_DATA_INTERVAL_SETTING)
    self.send_data(247)
    self.send_command(POWER_OFF)
    self.wait_until_idle()
    self.send_command(DEEP_SLEEP)
    self.send_data(165)
def sleep(self):
    self.send_command(VCOM_AND_DATA_INTERVAL_SETTING)
    self.send_data(247)
    self.send_command(POWER_OFF)
    self.wait_until_idle()
    self.send_command(DEEP_SLEEP)
    self.send_data(165)