Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 987e4ee831
26 lines (20 sloc) 0.543 kb
##################################################
## Switch each colour on in sequence on and off ##
## ##
## Example by Jason - @Boeeerb ##
##################################################
from piglow import PiGlow
from time import sleep
piglow = PiGlow()
val = 20
colour = 1
while True:
if colour == 19:
colour = 1
if val == 20:
val = 0
else:
val = 20
piglow.led(colour, val)
sleep(0.2)
colour = colour + 1
Jump to Line
Something went wrong with that request. Please try again.