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

Running two monitors with a Raspberry Pi 4
Running two monitors with a Raspberry Pi 4
With the new Raspberry Pi 4 Model B and it's two micro HDMI slots, running a dual monitor setup couldn't be simpler. ...
Read More
The Raspberry Pi Tutorial - A Beginner’s Guide
The Raspberry Pi Tutorial - A Beginner’s Guide
The Raspberry Pi has a number of ports which you will use to control the Raspberry Pi, and it can use to control othe...
Read More
Ryanteck Traffic HAT - Summary
Ryanteck Traffic HAT - Summary
The TrafficHAT is an Add-on board for the Raspberry Pi designed to help teach Basic Programming & Soldering. The ...
Read More