Пример #1
0
 def reset(self):
     # epdconfig.digital_write(self.reset_pin, GPIO.HIGH)
     # epdconfig.delay_ms(200)
     epdconfig.digital_write(self.reset_pin, GPIO.LOW)  # module reset
     epdconfig.delay_ms(200)
     epdconfig.digital_write(self.reset_pin, GPIO.HIGH)
     epdconfig.delay_ms(200)
Пример #2
0
 def reset(self):
     epdconfig.digital_write(self.reset_pin, 1)
     epdconfig.delay_ms(200)
     epdconfig.digital_write(self.reset_pin, 0)
     epdconfig.delay_ms(4)
     epdconfig.digital_write(self.reset_pin, 1)
     epdconfig.delay_ms(200)
Пример #3
0
 def send_data(self, data):
     epdconfig.digital_write(self.dc_pin, 1)
     epdconfig.digital_write(self.cs_pin, 0)
     epdconfig.spi_writebyte([data])
     epdconfig.digital_write(self.cs_pin, 1)
Пример #4
0
 def send_command(self, command):
     epdconfig.digital_write(self.dc_pin, 0)
     epdconfig.digital_write(self.cs_pin, 0)
     epdconfig.spi_writebyte([command])
     epdconfig.digital_write(self.cs_pin, 1)
Пример #5
0
 def send_data(self, data):
     epdconfig.digital_write(self.dc_pin, GPIO.HIGH)
     epdconfig.spi_writebyte([data])
Пример #6
0
 def send_command(self, command):
     epdconfig.digital_write(self.dc_pin, GPIO.LOW)
     epdconfig.spi_writebyte([command])