My Account

Wish List (0)

Saved Carts

Compare

Approved Re-Seller
Follow us on Facebook! Follow us on Twitter! Follow us on Instagram!

Ryanteck SnowPi - Demo 2

November 01, 2017

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)
Last update: November 01, 2017

Comments

Leave a Comment

Leave a Reply

* Name:
* Comment:
* E-mail: (Not Published)
Website: (Site url with http://)
Verification code: