CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

i2c - MCP23017 library
https://forum.codesys.com/viewtopic.php?f=21&t=9432
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?

Massimo

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/