Skip to content
Find file
987e4ee Aug 17, 2013
31 lines (27 sloc) 749 Bytes
##################################################
## Test the brightness of all the LEDs together ##
## ##
## Example by Jason - @Boeeerb ##
##################################################
from piglow import PiGlow
from time import sleep
piglow = PiGlow()
while True:
count = range(0, 256, +1)
for item in count:
if item < 256:
piglow.all(item)
sleep(0.01)
if item == 256:
break
count = range(255, 0, -1)
print "Brightest"
for item in count:
if item > 0:
piglow.all(item)
sleep(0.01)
if item == 0:
piglow.all(0)
break
print "Fin"
break
Something went wrong with that request. Please try again.