From 5114ec4c37b5a1bbb9dcba59d12a1a6e829a9801 Mon Sep 17 00:00:00 2001 From: Brian Y Date: Sat, 14 Dec 2019 21:03:23 -0500 Subject: [PATCH] combined individual commands into single line --- .../python/lib/waveshare_epd/epd2in7.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py index 2092f61..193e534 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd2in7.py @@ -313,12 +313,14 @@ class EPD: self.reset() self.send_command(0x01) # POWER_SETTING - self.send_data(0x03) # VDS_EN, VDG_EN - # self.send_data(0x00) # VCOM_HV, VGHL_LV[1], VGHL_LV[0] - self.send_data(0x07) # VCOM_HV, VGHL_LV[1], VGHL_LV[0] - self.send_data(0x2b) # VDH - self.send_data(0x2b) # VDL - self.send_data(0x09) # VDHR + # self.send_data(0x03) # VDS_EN, VDG_EN + # # self.send_data(0x00) # VCOM_HV, VGHL_LV[1], VGHL_LV[0] + # self.send_data(0x07) # VCOM_HV, VGHL_LV[1], VGHL_LV[0] + # self.send_data(0x2b) # VDH + # self.send_data(0x2b) # VDL + # self.send_data(0x09) # VDHR + self.send_data([0x03, 0x07, 0x2b, 0x2b, 0x09]) + self.send_command(0x06) # BOOSTER_SOFT_START # self.send_data(0x07)