We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59c24cb commit 008a502Copy full SHA for 008a502
myDevices/devices/shield/piface.py
@@ -20,7 +20,7 @@
20
class PiFaceDigital(MCP23S17):
21
def __init__(self, board=0):
22
self.board = toint(board)
23
- MCP23S17.__init__(self, 0, 0x20 + toint(board))
+ MCP23S17.__init__(self, 0, 0x20 + self.board)
24
self.writeRegister(self.getAddress(self.IODIR, 0), 0x00) # Port A as output
25
self.writeRegister(self.getAddress(self.IODIR, 8), 0xFF) # Port B as input
26
self.writeRegister(self.getAddress(self.GPPU, 0), 0x00) # Port A PU OFF
0 commit comments