ESP32 GPIO25 and GPIO26 as standard Output
Posted: Tue Feb 05, 2019 10:07 pm
Hello
i already have spent a lot of hours to find out how to set the GPIO25 as output.
i have tried a lot of things but nothing work for me!
This example code work for me to set the GPIO_NUM_33 to Output but not for the GPIO_NUM_25.
gpio_config_t io_conf;
io_conf.intr_type = GPIO_INTR_DISABLE;
io_conf.mode = GPIO_MODE_OUTPUT;
io_conf.pin_bit_mask = (1ULL << GPIO_NUM_25);
io_conf.pull_down_en = GPIO_PULLDOWN_DISABLE;
io_conf.pull_up_en = GPIO_PULLUP_DISABLE;
gpio_config(&io_conf);
gpio_set_level(GPIO_NUM_25, 1);
Can anybody please post me an example code how to set the GPIO25 output.
I dont wont to use the gpios in rtc mode, i want to use it in normal GPIO mode.
Thanks in advance!
best regards,
Markus
i already have spent a lot of hours to find out how to set the GPIO25 as output.
i have tried a lot of things but nothing work for me!
This example code work for me to set the GPIO_NUM_33 to Output but not for the GPIO_NUM_25.
gpio_config_t io_conf;
io_conf.intr_type = GPIO_INTR_DISABLE;
io_conf.mode = GPIO_MODE_OUTPUT;
io_conf.pin_bit_mask = (1ULL << GPIO_NUM_25);
io_conf.pull_down_en = GPIO_PULLDOWN_DISABLE;
io_conf.pull_up_en = GPIO_PULLUP_DISABLE;
gpio_config(&io_conf);
gpio_set_level(GPIO_NUM_25, 1);
Can anybody please post me an example code how to set the GPIO25 output.
I dont wont to use the gpios in rtc mode, i want to use it in normal GPIO mode.
Thanks in advance!
best regards,
Markus