Software designed for the RPi Pico W board. All licensed under ALv2. Uses MicroPython. --------------------- PREPARATION ## tooling $ pip3 install mpremote $ mpremote fs mkdir lib $ mpremote mip install logging $ mpremote mip install collections $ mpremote mip install github:miguelgrinberg/microdot/src/microdot.py $ mpremote mip install github:miguelgrinberg/microdot/src/microdot_asyncio.py ## copy our libraries onto the board. $ mpremote fs cp lib/homeutil.py :lib/ $ mpremote fs cp lib/devices.py :lib/ ## the main script that will launch upon soft-reboot $ mpremote fs cp {DIR}/main.py :/ ## and our local configuration $ mpremote fs cp config.json :/ --------------------- * switches/ - manages the 17 momentary press-switches (on 16 circuits) around the house, and signals devices to toggle their on/off state * lighting/ - controls the 16 strings of 24V LED cans, including PWM * stairwell/ - controls the 17 (3-channel) LED strips in the stairwell TBD: manage the 24 relays for 110V operation, plus 4 unconnected (today) circuits --------------------- DEV/TEST OPERATION # to enter REPL loop: $ mpremote # press ^D to soft-reboot into main.py # when running main.py, press ^C to return to REPL ---------------------