SHARE
TWEET

RGBLED

eastpole Jun 4th, 2020 (edited) 936 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top