Browse Source

First commit

master
Pete Shadbolt 5 years ago
commit
f583c9d161
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      xmas.py

+ 10
- 0
xmas.py View File

@@ -0,0 +1,10 @@
from time import sleep
import pifacedigitalio as p

p.init()

while(True):
p.digital_write(0,1) #turn on
sleep(3)
p.digital_write(0,0) #turn off
sleep(5)

Loading…
Cancel
Save