Cart 0

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)


Older Post Newer Post

Related Posts

Using a UBEC with a Raspberry Pi
Using a UBEC with a Raspberry Pi
Hooking up your UBEC to your Raspberry Pi really couldn't be easier. Simply plug in the 3 pin socket to your Raspberr...
Read More
How to lock your Raspberry Pi Screen
How to lock your Raspberry Pi Screen
Many of you will be familiar with the Windows screensaver/lock screen.  If you are going to leave your PC alone for a...
Read More
Using Neopixels with the Raspberry Pi
Using Neopixels with the Raspberry Pi
Let’s be honest. Lights are cool. Multi coloured lights are very cool. Controllable multi coloured lights are awesome...
Read More