Ryanteck SnowPi - Demo 2
This is another demo program for the SnowPi written by Jarle Tiegland.
A video tweet can be found at @jarjargeek's vine.
from gpiozero import LEDBoard from gpiozero import LED from time import sleep nose = LED(25) rEye = LED(24) lEye = LED(23) tummy = LEDBoard(7,8,9,17,18,22) while True: tummy.blink(1,0.5,5) sleep(0.5) nose.on() sleep(1) nose.off() sleep(1) rEye.on() sleep(0.5) rEye.off() sleep(0.5) lEye.on() sleep(0.5) lEye.off() sleep(0.5) tummy.blink(0.3,0.2,5) sleep(0.5) rEye.on() sleep(0.2) rEye.off() sleep(0.2) lEye.on() sleep(0.2) rEye.on() sleep(0.2) rEye.off() sleep(0.2) lEye.on() sleep(0.2) lEye.off() sleep(0.5)