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
Matrix Staff
Posts: 1466
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 515 times
Been thanked: 474 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: 1002
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 106 times
Been thanked: 517 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