This program turns on all 24 blue LEDs on the board, one at a time. It then turns them all off.
TODO - record a GIF or video.
1 2 3 4 5 6 7 8 9101112131415161718192021
importmachineimportutime# RUNNING LIGHTforiinrange(29):# from 0 to 28 ifi!=23andi!=24:# pin 23 and 24 are not GPIO pinsmachine.Pin(i,machine.Pin.OUT)# set the pins to outputwhileTrue:foriinrange(29):ifi!=23andi!=24:machine.Pin(i).value(0)# turn off the LEDutime.sleep(0.1)# sleep for 100msmachine.Pin(i).value(1)# turn on the LEDforiinrange(28,-1,-1):# from 28 to 0ifi!=23andi!=24:machine.Pin(i).value(1)# turn on the LEDutime.sleep(0.1)machine.Pin(i).value(0)# turn off the LED
References
This program was taken from tje Cytron GitHub site here.