Control-Surface icon indicating copy to clipboard operation
Control-Surface copied to clipboard

Arduino Leonardo freezing on start with MCP23017 rotary encoders examples codes

Open tainalo2 opened this issue 1 year ago • 2 comments

Describe the bug When starting Leonardo with MCP23017 examples code implement, if SDA linked then arduino freezing.

To Reproduce

  • Link an MCP23017 to an arduino Leonardo as explain in documentation
  • Push official MCP23017-RotaryEncoder-No-Interrupts.ino code without change
  • Reset Arduino Leonardo after upload
  • Arduino is freezing and not appearing in PC USB device
  • Unlink SDA and Reset
  • Arduino appearing on PC USB but you can't use the MCP23017

Expected behavior Expecting not freezing and using rotary encoders over MCP23017

Code Link to example test : https://github.com/tttapa/Control-Surface/blob/main/examples/1.%20MIDI%20Output/3.%20Rotary%20Encoders/MCP23017-RotaryEncoder-No-Interrupts/MCP23017-RotaryEncoder-No-Interrupts.ino

Precision I have test my same installation with the Adafruit_MCP23X17.h and a button and it's working, to verify if my MCP23017 is working.

(thank you for your amazing library !)

tainalo2 avatar Apr 28 '23 13:04 tainalo2