How can I set up Action Flow in EEZ Studio to handle physical button inputs for menu navigation on an ESP32? Is there a way to directly read GPIO inputs within Action Flow, or do I need to write custom code to handle this? Any suggestions or examples wou

I am working on an ESP32 project where I need to create a main menu interface using EEZ Studio and control it with two physical buttons connected to the ESP32. The goal is to use one button to move up and another button to move down through the menu items. When a menu item is selected, it should be highlighted or change its visual state to indicate it is focused.

Here are the key points of the setup:

Hardware Configuration:
    Two physical buttons are connected to specific GPIO pins on the ESP32 (e.g., GPIO 32 and GPIO 33).
    The buttons are configured with pull-up resistors to ensure stable input readings.

Desired Behavior:
    When the "Up" button is pressed, the menu should move the selection to the previous item.
    When the "Down" button is pressed, the menu should move the selection to the next item.
    The selected menu item should change its visual state (e.g., color change, highlighting) to indicate it is focused.
    The menu navigation should loop (e.g., if the selection is at the last item and the "Down" button is pressed, it should go back to the first item).

Issue with Action Flow in EEZ Studio:
    I want to implement this using Action Flow in EEZ Studio, but there doesn't seem to be a direct way to read the state of GPIO pins to check if a button is pressed.
    Ideally, I would like to know if there's a method in Action Flow to capture physical button inputs or how to integrate a custom script to read GPIO pin states and trigger menu actions based on that input.

Hi, I hope you found a solution to your problem.

I am in a similar situation. I need to generate a custom UI with EEZ Studio but control the movement using a rotary encoder and push buttons since my display does not have a touch controller.

Does anyone have any idea how to read GPIOs using EEZ Studio?