Hello,
I use a Arduino Portenta H7 with breakout board and Micropython.
How can I access the GPIO pins (0-6) of the breakout board in Micropython?
I wrote a short test program, which works fine for an output pin on the Portenta H7. I tried with maschine.pin('GPIO_0') but without success.
Thanks.
import time, machine, pyb
pin = machine.Pin('PH15', machine.Pin.OUT)
led_red = pyb.LED(1)
led_green = pyb.LED(2)
while True:
pin.high()
led_green.on()
print('High Level activated')
time.sleep(10)
led_green.off()
pin.low()
led_red.on()
print('Low Level')
time.sleep(4)
led_red.off()