Blink lite v1
![blink lite v1 blink lite v1](https://i1.wp.com/makerpro.cc/wp-content/uploads/2017/08/%E9%85%8D%E5%9C%961.jpg)
![blink lite v1 blink lite v1](https://www.sunmi.cz/assets/images/4-2-2560x1272.jpg)
Note: Because the GPIO 18 pin requires sudo on the Raspberry Pi to work, the run_lights.py script must be run with sudo. The script also has HUP and INT signal handlers, which will turn off the lights when those signals are received. If the state file does not exist, the default state is static.
#Blink lite v1 install#
(Darin London, CC BY-SA 4.0) Install the light controller and Flask web application
#Blink lite v1 code#
Once these libraries and their dependencies are installed, you can write code like the following to program one or more lights wired to your Raspberry Pi using sudo python3 (sudo is required): Install it with: sudo apt-get install python3-pip You will need to pip3 to install libraries for Python 3. You do not need to install CircuitPython on the Raspberry Pi OS because the preinstalled Python 2 and Python 3 are compatible. These are designed to work with CircuitPython, Adafruit's port of Python designed for low-cost microcontroller boards.
#Blink lite v1 full#
#Blink lite v1 driver#
The WS2811/2 class of programmable lights integrates red, green, and blue LED lights with a driver chip into a tiny surface-mounted package controlled through a single wire. I used Raspberry Pi OS Lite and set it up in a headless mode with SSH enabled.
This past holiday season, I decided to add some extra joy to our house by setting up a DIY light display.