Code: Select all
#Setup GPIO Pins from array
from machine import Pin
#from Array import Array
def arr(n=0):
Setup = [
[0, Pin_IN, PULL_UP], #p1
[2, Pin_IN, PULL_UP] #p4
]
#Now use array entries to set up GPIO Pins
#for contents of array
#set up Pin(p#, ptype, PULL_UP/DOWN)