Skip to content
Snippets Groups Projects
user avatar
Jonathan Schöbel authored
The MCP23017 chip has a polarity register (IPOL), which essentially
inverts the pin.  However this is only done on input, the output is
exposed as is, which is inconsistent and also limits the use of the
inverted flag.

The pin is now inverted on output in software, based on whether the
respective bit is set in the IPOL register.
2e01da1f
History
Name Last commit Last update