Replies: 2 comments
-
If I understood correctly I can send menu navigation commands directly to GEM from the main code: Can I then keep my logic for handling the buttons and send action request directly to active GEM menu items? I will post some results after I have done my own testing on this. |
Beta Was this translation helpful? Give feedback.
-
Sure, controlling GEM with multiplexed signals is absolutely possible! I've done it myself in my personal projects. I used KeyDetector library for that instead of built-in U8g2 key detection (btw, KeyDetector is used throughout GEM examples for Adafruit GFX and AltSerialGraphicLCD versions). But of course it doesn't mean that you should use KeyDetector for multiplexed key detection, since, as I understand, you've already have your own implementation of key multiplex/detection. If that is the case, than you should be able to control GEM from your sketch by calling (And here is an example of how to work with multiplexed signals in KeyDetector, although in that particular case without integration with GEM. But generally speaking, example on detection level of analog signals is may be even more relevant - KeyDetector can listen to the specific levels of analog signal and trigger different actions accordingly). |
Beta Was this translation helpful? Give feedback.
-
I am designing a MIDI foot controller for my own use, based on ESP32-C3/S3.
Display will be either 128x64 SPI LCD (preferred) or a 16x2/20x4 I2C LCD.
I need some kind of menu managing system for setting up global parameters and editing preset names and values.
After initial testing GEM looks quite promising.
I have already 12 buttons multiplexed using 16ch analog mpx for selecting presets and sending CC/PC commands and it is working fine.
As the device will have multiple buttons, RGB LED channel, SPI and I2C devices the available pins are getting low...
Just started browsing the GEM docs but I did not find any clue how to use multiplexed buttons as controllers for menus.
Is it even possible with current GEM version?
Beta Was this translation helpful? Give feedback.
All reactions