Good day,
Can someone please help me with code to enable internal pullup resistors on arduino uno in Flowcode.
I tried numerous different codes without success.
Thanks
arduino uno Internal_Pullup enable
-
- Posts: 5
- http://meble-kuchenne.info.pl
- Joined: Tue Aug 31, 2021 9:22 am
- Has thanked: 1 time
-
- Matrix Staff
- Posts: 1920
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 622 times
- Been thanked: 645 times
Re: arduino uno Internal_Pullup enable
Hi jancuaucamp.
The easiest way is to set the input you want the weak pullup on, to an output high.
Then change it back to an input.
The weak pullup should then be enabled.
The easiest way is to set the input you want the weak pullup on, to an output high.
Then change it back to an input.
The weak pullup should then be enabled.
Martin
-
- Valued Contributor
- Posts: 1462
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 135 times
- Been thanked: 713 times
Re: arduino uno Internal_Pullup enable
There is a macro at
https://www.flowcode.co.uk/forums/viewt ... lit=pullup
that does the job too...
Martin
https://www.flowcode.co.uk/forums/viewt ... lit=pullup
that does the job too...
Martin