Can't get tcmenu with i2c rotary encoder to work on xiao samd21 (seeeduino) expansion board with ssd1306 oled #559
Replies: 2 comments 6 replies
-
|
Not saying this is a long term solution but, I see it is set to not poll (interrupt only) in code generator, could you please try changing the setting to polling to see if that works. Then we can rule out problems with interrupts. |
Beta Was this translation helpful? Give feedback.
-
|
I would start maybe seeing if this sketch works: I've just run more or less a full suite of tests that included I2C expander support, and it was certainly working OK with a MCP23017 but I noticed that I no longer have a test for 8574, I'll set up another board that uses the 8574 as well (I have one of those chips). However, the 8575 was community provided, and I honestly don't even have the chip to hand. If you can try the more basic example and see what gets logged, that would help to work out if there is an issue with the expander, in which case I may have to buy one and try it myself. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this is a bug, so I'm posting this here.
I've recently used the xiao samd21 (seeeduino) with expansion board for a MIDI project, and now I'm trying to get tcmenu display on the ssd1306 oled and control via a single rotary encoder. I'm using the latest tcmenuDesigner and everything works fine if I use local pins for the rotary encoder i.e. on pins 9, 8, and 10. However when I try to use a PCF8575 i2c expander for the rotary encoder pins i.e. on expander pins 1, 2, and 0, then the display is initialised ok but there is no control (either up/down or button) from the i2c rotary encoder.
I've tested the i2c expander hardware setup is working ok, as it works with all the example code of the Github library Adafruit_PCF8575 - including interrupts via xiao samd21 pin 2.
I've uploaded my currently failing simple tcmenu with PCF8575 i2c rotary encoder test code at :
https://github.com/AtmosphEng/xiao-samd21-tcmenu-i2c-pcf8575-rotaryencoder-test
Could you please have a look and suggest some areas to check to try and get the expected normal operation with an i2c rotary encoder.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions