1 bug 1 enhancement

Issue #1 resolved
Tribes Tom created an issue

Missing init to 0 for GPIOA and GPIOB rep.

Missing way to get current pin value in output mode.

See my file with my enhancements in file or there : git

Comments (2)

  1. Dan W repo owner

    Thanks for the enhancement! I merged the code you posted with one modification - at lines 61 and 62, you had:

            self.i2c.write8(MCP23017_GPIOA, 0x00)  #  output register to 0
            self.i2c.write8(MCP23017_GPIOA, 0x00)  # output register to 0
    

    You have MCP23017_GPIOA listed twice, rather than A and B.

  2. Log in to comment