For the time being the web server only allows for changing between a few preset colors and hopefully eventually have time to add some other cool options.
boot.pymain.pytry_connect.pylight_effects.pyweb_server.pyindex.htmlapp.jsstyle.css
With micropython boot.py and main.py will both be run on boot.
-
boot.pyis pretty much the default micropython boot file. It's necessary, but not doing much for this project. -
try_connect.pywhen run, looks for and attempts to connect to a predefined wifi network. This might usually be done inboot.pybut I wanted to call it repeadtedly in case it couldn't initially connect without affecting other code execution and putting it in it's own module seemed like a good way to do that. -
main.pyis actually the main file housing theMainclass and themainmethod which use the other modules in conjunction to make all this lampy goodness happen. -
light_effects.pyholds all the code responsible for setting led colors and maintaining the strip's state when doing interesting transition effects. -
web_server.pyruns the web server and usesindex.html,app.js, andstyle.cssto display the web page and send appropriate http requests to change light settings.
