Christmas tree light sequencer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines

  1. from time import sleep
  2. import pifacedigitalio as p
  3. p.init()
  4. while(True):
  5. p.digital_write(0,1) #turn on
  6. sleep(3)
  7. p.digital_write(0,0) #turn off
  8. sleep(5)