Pins in UIflow
-
Which physical pins on the M5stack and M5stick correspond to pins 0-5 in UIflow?
-
Hi @Kris
that is entirely up to you - pin0-4 are just variables.
In UIFlow use the first statement to initialise the desired GPIO (0-36) to be used with one of the 5 variables (pin0-4).
MicroPython example: variable pin0 is used for GPIO18:
pin0 = machine.Pin(18, mode=machine.Pin.IN, pull=machine.Pin.PULL_UP)Cheers
Felix -
@felmue thanks,
-
@felmue
if i want to use more than 5 pins,what shall I do ? -
Hello @Alex28
in the end pin0 - pin4 are simply Micropython variables, so either switch to the Micropython tab or use
Execute codeblocks to add more pinX variables.Thanks
Felix
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login