commit 05ddee0894f47111b14e1b3e970b2c5487c0597c Author: Nils Freydank Date: Mon Nov 28 22:47:46 2022 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3d2724e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +.* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..954936a --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright 2022 Nils Freydank + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..053b344 --- /dev/null +++ b/README.rst @@ -0,0 +1,28 @@ +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 :code:`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’`_. + +.. _`micropython port`: https://micropython.org/download/rp2-pico/# +.. _`adafruit-ampy`: https://pypi.org/project/adafruit-ampy/ +.. _`’O Tannenbaum’`: https://en.wikipedia.org/wiki/O_Tannenbaum + +.. vim:fileencoding=utf-8:ts=4:syntax=rst:expandtab