MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / send_command

Method send_command

resources/waveshare_epd/epd2in13.py:43–47  ·  view source on GitHub ↗
(self, command)

Source from the content-addressed store, hash-verified

41 epdconfig.delay_ms(200)
42
43 def send_command(self, command):
44 epdconfig.digital_write(self.dc_pin, 0)
45 epdconfig.digital_write(self.cs_pin, 0)
46 epdconfig.spi_writebyte([command])
47 epdconfig.digital_write(self.cs_pin, 1)
48
49 def send_data(self, data):
50 epdconfig.digital_write(self.dc_pin, 1)

Callers 7

TurnOnDisplayMethod · 0.95
initMethod · 0.95
SetWindowsMethod · 0.95
SetCursorMethod · 0.95
displayMethod · 0.95
ClearMethod · 0.95
sleepMethod · 0.95

Calls 2

digital_writeMethod · 0.45
spi_writebyteMethod · 0.45

Tested by

no test coverage detected