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

Method send_command

resources/waveshare_epd/epd4in26.py:58–62  ·  view source on GitHub ↗
(self, command)

Source from the content-addressed store, hash-verified

56 epdconfig.delay_ms(20)
57
58 def send_command(self, command):
59 epdconfig.digital_write(self.dc_pin, 0)
60 epdconfig.digital_write(self.cs_pin, 0)
61 epdconfig.spi_writebyte([command])
62 epdconfig.digital_write(self.cs_pin, 1)
63
64 def send_data(self, data):
65 epdconfig.digital_write(self.dc_pin, 1)

Callers 9

TurnOnDisplayMethod · 0.95
TurnOnDisplay_PartMethod · 0.95
SetWindowMethod · 0.95
SetCursorMethod · 0.95
initMethod · 0.95
displayMethod · 0.95
display_PartialMethod · 0.95
ClearMethod · 0.95
sleepMethod · 0.95

Calls 2

digital_writeMethod · 0.45
spi_writebyteMethod · 0.45

Tested by

no test coverage detected