Hello everyone, I'd to know how to use pull_up and pull_down internal resistor GPIO (ESP32) with "Code C" in flowcode v9. Can anyone help me?
Thanks.
Pullup and Pulldown Resistor GPIO ESP32
-
flowjmaria
- Posts: 10
- http://meble-kuchenne.info.pl
- Joined: Sat Dec 05, 2020 6:34 pm
-
BenR
- Matrix Staff
- Posts: 2346
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 649 times
- Been thanked: 856 times
Re: Pullup and Pulldown Resistor GPIO ESP32
Hello,
You can try this, replacing 0 with the GPIO number you want to add the pull up or pull down to.
Pull Up
Pull Down
Pull Up and Down
Turn off again
You can try this, replacing 0 with the GPIO number you want to add the pull up or pull down to.
Pull Up
Code: Select all
gpio_set_pull_mode(0, GPIO_PULLUP_ONLY);Code: Select all
gpio_set_pull_mode(0, GPIO_PULLDOWN_ONLY);Code: Select all
gpio_set_pull_mode(0, GPIO_PULLUP_PULLDOWN);Code: Select all
gpio_set_pull_mode(0, GPIO_FLOATING);-
flowjmaria
- Posts: 10
- Joined: Sat Dec 05, 2020 6:34 pm