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

Method __init__

resources/waveshare_epd/epdconfig.py:21–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 SCLK_PIN = 11
20
21 def __init__(self):
22 import spidev
23 import gpiozero
24
25 self.SPI = spidev.SpiDev()
26 self.GPIO_RST_PIN = gpiozero.LED(self.RST_PIN)
27 self.GPIO_DC_PIN = gpiozero.LED(self.DC_PIN)
28 # self.GPIO_CS_PIN = gpiozero.LED(self.CS_PIN)
29 self.GPIO_PWR_PIN = gpiozero.LED(self.PWR_PIN)
30 self.GPIO_BUSY_PIN = gpiozero.Button(self.BUSY_PIN, pull_up = False)
31
32
33

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected