linux-works
linux-works
https://github.com/sercona/owon-cm2100b-clamp-meter
I'm not sure which way to go; I can see the efficiency of reading a whole port expander byte (or word) at once and caching that for a short time....
oh, and there would be a 'digitalReadWholePort()' or something, for when the user really wanted a complete set of bits and is going to do their own AND and OR...
I tend to use mcp23008 and pcf8574 (or 75) mostly.
I often dont have a spare gpio to allocate to the interrupt pin on the PE chip so I have to poll and compare old word to new word, etc....
are you sure you have the right gpio numbers? and you are using switches to connect those to ground? I have 4 switches working; 2 2-pos and 2 3-pos and...