CODESYS - the IEC 61131-3 automation software

i2c - MCP23017 library
Page 1 of 1

Author:  elconfa [ Thu Jan 10, 2019 8:49 am ]
Post subject:  i2c - MCP23017 library

Good morning,
I made a small change to the library i2c - MCP23017.

Now when the pins are set as inputs, the signal arriving at the PLC reflects the opposite logical state with respect to the input signal.
In practice, when the pin is set to 0V, the high signal arrives on the PLC.

I think it's easier to manage inputs this way.

I provide both the normal library and the compiled library.

What do you think?


Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited