I am trying to set a specified pin ie pin 12 on maixduino board when the 20class model installed recognizes a specific class(in this case cats).
I have tried to use the suggested code to register an internal pin ie GPIO1 to an external pin ie 12.
from Maix import GPIO
apin = GPIO(GPIO.GPIO1,GPIO.OUT)
Maixpy IDE complains that fm is not defined.
What am I doing wrong.
This same code works perfectly when typed into the on board maixpy console.
I am using version 0.5.0.38 micropython on the board and
0.2.5 Maixpy IDE