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
-
- Posts: 10
- http://meble-kuchenne.info.pl
- Joined: Sat Dec 05, 2020 6:34 pm
-
- Matrix Staff
- Posts: 1924
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 684 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);
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 10
- Joined: Sat Dec 05, 2020 6:34 pm