From aff50a71b67fccb4f2b1c167fb5738885b6a2d9b Mon Sep 17 00:00:00 2001 From: Harry Phillips Date: Wed, 19 Jul 2017 14:42:09 +1000 Subject: [PATCH] Correct motor 0 and motor 1 --- pifacerelayplus/core.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pifacerelayplus/core.py b/pifacerelayplus/core.py index aba548c..47c133a 100644 --- a/pifacerelayplus/core.py +++ b/pifacerelayplus/core.py @@ -205,12 +205,10 @@ def __init__(self, elif plus_board == MOTOR_DC: self.motors = [ - MotorDC( - pin1=pcmcp.MCP23S17RegisterBitNeg(3, pcmcp.GPIOB, self), - pin2=pcmcp.MCP23S17RegisterBitNeg(2, pcmcp.GPIOB, self)), - MotorDC( - pin1=pcmcp.MCP23S17RegisterBitNeg(1, pcmcp.GPIOB, self), - pin2=pcmcp.MCP23S17RegisterBitNeg(0, pcmcp.GPIOB, self)), + MotorDC(pin1=pcmcp.MCP23S17RegisterBitNeg(1, pcmcp.GPIOB, self), + pin2=pcmcp.MCP23S17RegisterBitNeg(0, pcmcp.GPIOB, self)), + MotorDC(pin1=pcmcp.MCP23S17RegisterBitNeg(3, pcmcp.GPIOB, self), + pin2=pcmcp.MCP23S17RegisterBitNeg(2, pcmcp.GPIOB, self)), MotorDC(pin1=pcmcp.MCP23S17RegisterBit(4, pcmcp.GPIOA, self), pin2=pcmcp.MCP23S17RegisterBit(5, pcmcp.GPIOA, self)), MotorDC(pin1=pcmcp.MCP23S17RegisterBit(6, pcmcp.GPIOA, self),