How to use GPIO43 as Input on a ESP32-S3
Posted: Thu Aug 01, 2024 6:48 pm
Hi,
I'd like use the GPIO43 on ESP32-S3 as Input.
I'm doing this (I don't know what I have to put on <XX>):
[Codebox]
gpio_iomux_in(GPIO_NUM_43, <XX>);
gpio_config_t config{BIT(43), GPIO_MODE_INPUT, GPIO_PULLUP_ENABLE, GPIO_PULLDOWN_DISABLE, GPIO_INTR_POSEDGE}; gpio_config(&config);
gpio_install_isr_service(0);
gpio_isr_handler_add(GPIO_NUM_43, button_handler, this);
[/Codebox]
How do I have to do to use the GPIO43 as Input?
Thank you
I'd like use the GPIO43 on ESP32-S3 as Input.
I'm doing this (I don't know what I have to put on <XX>):
[Codebox]
gpio_iomux_in(GPIO_NUM_43, <XX>);
gpio_config_t config{BIT(43), GPIO_MODE_INPUT, GPIO_PULLUP_ENABLE, GPIO_PULLDOWN_DISABLE, GPIO_INTR_POSEDGE}; gpio_config(&config);
gpio_install_isr_service(0);
gpio_isr_handler_add(GPIO_NUM_43, button_handler, this);
[/Codebox]
How do I have to do to use the GPIO43 as Input?
Thank you