Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 1.16 KB

README.md

File metadata and controls

36 lines (19 loc) · 1.16 KB

Neopixel Christmas Lights

This project is an attempt to create a programmable Christmas tree (tree not included)

Setup

We suggest you use a virtual environment of some sort to manage all the packages.

Required packages (pip install):

  • numpy
  • flask
  • adafruit-circuitpython-neopixel
  • pygame (if you use the fake tree interface)

Network Configuration

Flask default port is 5000. Find the IP address of the Raspberry Pi by typing ifconfig in the terminal.

In a browser navigate to the address of the Pi and port 5000. If the Pi gets the first IP address on the subnet, it might look something like

http://192.168.0.1:5000/

Stringing the Lights

The code assumes that the lights are strung from the bottom of the tree to the top, in a circular fashion around the tree. The definitions for rows are found in the file grid.py, in the variable named pts. The values in this array define the beginning and ending indices for each row. To change how many rows there are, just change the definition here of this list.

Other

Similar project (that we didn't find until later)