Christmas tree light sequencer
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
176B

  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)