Trying to mirror GPIO 1 to GPIO 40
Posted: Tue Oct 28, 2025 6:51 pm
Using a ESP32-S3-1 WROOM. Custom circuit board.
I designed a pcb to work with a 3.5" TFT display over 8bit parallel interface. I failed to notice that the firmware driver for this display requires many IO to be in range 0-31.
Two of my IO do not meet the requirement.
I wonder if it is possible to map GPIO states over the mux. For example, when setting GPIO1/2, i want GPIO40/41 to follow.
I have tried this but it does not work:
gpio_iomux_out(GPIO_NUM_40, SIG_GPIO_OUT_IDX + 1, false);
gpio_iomux_out(GPIO_NUM_41, SIG_GPIO_OUT_IDX + 2, false);
Any suggestions on how to do this? Is it even possible?
I designed a pcb to work with a 3.5" TFT display over 8bit parallel interface. I failed to notice that the firmware driver for this display requires many IO to be in range 0-31.
Two of my IO do not meet the requirement.
I wonder if it is possible to map GPIO states over the mux. For example, when setting GPIO1/2, i want GPIO40/41 to follow.
I have tried this but it does not work:
gpio_iomux_out(GPIO_NUM_40, SIG_GPIO_OUT_IDX + 1, false);
gpio_iomux_out(GPIO_NUM_41, SIG_GPIO_OUT_IDX + 2, false);
Any suggestions on how to do this? Is it even possible?