Example #1
0
def glow():
	for p in range(2):
		for x in range(255):
			piglow.arm(0, x)
			piglow.arm(1, x)
			piglow.arm(2, x)

		for x in reversed(range(255)):
			piglow.arm(0, x)
			piglow.arm(1, x)
			piglow.arm(2, x)
Example #2
0
## Set each arm of the PiGlow to a specific brightness ##
##                                                     ##
##  Example by Jason - @Boeeerb                        ##
#########################################################

from time import sleep

import piglow


piglow.auto_update = True

piglow.all(0)

while True:
    piglow.arm(3, 0)
    piglow.arm(1, 20)
    sleep(0.5)
    piglow.arm(1, 0)
    piglow.arm(2, 20)
    sleep(0.5)
    piglow.arm(2, 0)
    piglow.arm(3, 20)
    sleep(0.5)

    piglow.all(0)
    piglow.arm1(10)
    sleep(0.5)
    piglow.all(0)
    piglow.arm2(10)
    sleep(0.5)
Example #3
0
#!/usr/bin/env python
#########################################################
## Set each arm of the PiGlow to a specific brightness ##
##                                                     ##
##  Example by Jason - @Boeeerb                        ##
#########################################################

import piglow
from time import sleep

piglow.auto_update = True

piglow.all(0)

while True:
    piglow.arm(3, 0)
    piglow.arm(1, 20)
    sleep(0.5)
    piglow.arm(1, 0)
    piglow.arm(2, 20)
    sleep(0.5)
    piglow.arm(2, 0)
    piglow.arm(3, 20)
    sleep(0.5)

    piglow.all(0)
    piglow.arm1(10)
    sleep(0.5)
    piglow.all(0)
    piglow.arm2(10)
    sleep(0.5)