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)
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)
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)
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)
def send_data(self, data): epdconfig.digital_write(self.dc_pin, GPIO.HIGH) epdconfig.spi_writebyte([data])
def send_command(self, command): epdconfig.digital_write(self.dc_pin, GPIO.LOW) epdconfig.spi_writebyte([command])