You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nils Freydank d5c1a51a67
Import the code
2 months ago
.gitignore Initial commit 2 months ago
LICENSE Initial commit 2 months ago
README.rst Initial commit 2 months ago
light.py Import the code 2 months ago
main.py Import the code 2 months ago
music.py Import the code 2 months ago
o-tannenbaum.json Create a music file 2 months ago

README.rst

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head>

rpi-pico-candle / Little christmas candle

The rpi-pico-candle project uses a real candle or any similar structured and shaped object and adds some LED to simulate flickering candle light aswell as a PWM-driven piezo for somewhat-nerdy christmas music.

The code is written in python and should run on the micropython port for the rpi pico boards. (Note that circuitpython exists, too, but is not supported by this project.)

To put files on the pico board you can use e.g. the tool adafruit-ampy. The file main.py is executed first.

Music data are stored as JSON files in a custom format which sets the note's name plus the interval, e.g. c4 and _q for a quarter note.

Note that the names use the German naming, which means that b is h and bb is b. Details can be found inside the file music.py.

At startup the software plays a version of the German christmas song O Tannenbaum.

</html>