Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion PCAL6416A.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,6 @@ def digitalWrite(self, value):
self.PCAL6416A.digitalWrite(self.pin,value)

def digitalRead(self):
return self.PCAL6416A.digitalRead(self.pin)
return self.PCAL6416A.digitalRead(self.pin)

__call__ = digitalRead
9 changes: 6 additions & 3 deletions inkplate6_COLOR.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ def begin(self):
self.EPAPER_DC_PIN = Pin(EPAPER_DC_PIN, Pin.OUT)
self.EPAPER_CS_PIN = Pin(EPAPER_CS_PIN, Pin.OUT)

self.SD_ENABLE = gpioPin(self._PCAL6416A, 10, modeOUTPUT)
self.SD_ENABLE = gpioPin(self._PCAL6416A, 13, modeOUTPUT)

# Touchpads
self.TOUCH1 = gpioPin(self._PCAL6416A, 10, modeINPUT_PULLUP)
self.TOUCH2 = gpioPin(self._PCAL6416A, 11, modeINPUT_PULLUP)
self.TOUCH3 = gpioPin(self._PCAL6416A, 12, modeINPUT_PULLUP)

self.framebuf = bytearray(D_ROWS * D_COLS // 2)

Expand Down Expand Up @@ -154,8 +159,6 @@ def begin(self):
self.sendCommand(b"\x50")
self.sendData(b"\x37")

self.setPCALForLowPower()

self._panelState = True

return True
Expand Down