Skip to content

Remove setting polarity in MCP23017 constructor

Karol Krizka requested to merge kk_nodefaultinMCP23017 into devel

Remove setting the polarity of the outputs in the constructor. This has several advantages:

  • I2C lines might not necessarily be initialized at the time the constructor is called.
  • It should be up to the user to control the polarity.

This should be a backwards compatible change as we just set what already was the power-up polarity.

Merge request reports