Advertisement
eastpole

RGBLED

Jun 4th, 2020
1,120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. from time   import sleep
  2. from gpiozero import RGBLED
  3. from signal import pause
  4.  
  5. squid = RGBLED(18,23,24,True,(0,0,0),True)
  6.  
  7. while True:
  8.     blink(1,1,0,0, 1,1,1, 0,0,0, 1)
  9.     sleep(1)
  10.     blink(1,1,0,0, 1,0,0, 0,0,0, 1)
  11.     sleep(1)
  12.     blink(1,1,0,0, 0,1,0, 0,0,0, 1)
  13.     sleep (1)
  14.     blink(1,1,0,0, 0,0,1, 0,0,0, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement