willhey / mcp23017chip

Node-red mcp23017chip
MIT License
6 stars 7 forks source link

ON/OFF indicator logic is reversed #4

Open realsquash opened 6 years ago

realsquash commented 6 years ago

On both and input and output the indicators are backwards and nothing I seem to do fixes them.

willhey commented 6 years ago

For the input, if you are using "pullup" then the switch being closed will be a logical false

For the output, have you examined the state of the output, mine appears to be working correctly, so I guess the chip or the SSRs I use somehow inverts it.

realsquash commented 6 years ago

Both inputs and outputs function in the hardware so there's no config issue. When you have a screen full of in and out nodes with indicator lights you shouldn't need to know how all 16 of those nodes are configured with regards to pullups, active or low, etc. If a switch pulls an input low I want the light to be green and on to indicate that it should be sending its message. The light doesn't say high/low, it says on/off, which is more useful when in the node editor. Or it would be nice to have both, but I'm not sure if that's possible.