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 code
blocks to add more pinX variables.Thanks
Felix