arduino uno Internal_Pullup enable

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jancuaucamp
Posts: 5
http://meble-kuchenne.info.pl
Joined: Tue Aug 31, 2021 9:22 am
Has thanked: 1 time

arduino uno Internal_Pullup enable

Post by jancuaucamp »

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

medelec35
Valued Contributor
Posts: 2210
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 676 times
Been thanked: 754 times

Re: arduino uno Internal_Pullup enable

Post by medelec35 »

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.
Martin

mnfisher
Valued Contributor
Posts: 1759
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 147 times
Been thanked: 827 times

Re: arduino uno Internal_Pullup enable

Post by mnfisher »

There is a macro at

https://www.flowcode.co.uk/forums/viewt ... lit=pullup
that does the job too...

Martin

Post Reply