neroroxxx / RoxMux

Collection of Multiplexer Controllers for some commonly used multiplexer chips.
Other
15 stars 5 forks source link

Using RoxMCP2301X w/ RoxEncoder and RoxButton modules causes polling issues #10

Open quiknick opened 5 months ago

quiknick commented 5 months ago

my project has an esp32 has 4 mcp23017 IO expanders:

When utilizing the following modules together with RoxMux.h there are serious issues with the mux module. When I exchange the mux module for Rob Tillaart's MCP23017_RT library I have no issues using the button and encoder modules of RoxMux, but when I use the RoxMCP2301X module there is serious problems when polling the RoxEncoder or RoxButton modules. There are all sorts of issues with the polling no matter if I adjust the timing of the polling. Until this is solved I have changed over to the above mention library and is working fine along side RoxMux at the expense of more storage and heap usage.

  RoxMCP2301X <0x20> mcp20;
  RoxMCP2301X <0x21> mcp21(&Wire1);
  RoxMCP2301X <0x22> mcp22;
  RoxMCP2301X <0x24> mcp24;
neroroxxx commented 5 months ago

Can you specify the issues?