Loading…
/circuitpython folder/lib into /CIRCUITPY/lib, alternatively use install.sh script (only for linux)Copy src/pybox into CIRCUITPY/lib
There are six modules in this package:
from pybox.led import LED
# choose external led
led = LED('external')
# led on
led.on()
#led off
led.off()
# constructor
led = pybox.led.LED(target='internal')
# on and off
led.on()
led.off()
# toggle: off if led is on and viceversa
led.toggle()
# write a digital value on led (0 or 1) an color it
led.write(1, GREEN)
led.write(0)
Loading 3D model… large boards can take a moment.
No comments yet. Be the first to ask about this board.