A clock that counts down until your bedtime, reminding you of the little time left.
This is a simple project of mine where I plugged a MAX7219 to an ESP8266 NodeMCU that has MicroPython on it. The main.py file should be edited to customize the counter to your needs. I have implemented aiorepl into the library for debugging. Sometimes it works, sometimes it does not. The script uses Central European Time.
- Buy the necessary hardware.
- Flash MicroPython onto your ESP8266.
- Install mpremote for REPL access and file operations.
- Clone my repository, edit
main.pyto fit your needs. - Transfer all the python files with
mpremote, likempremote cp main.py :. - Modify
boot.pyin the micropython root to include something like this:
try: importmainexceptExceptionase: print(f"Error in main.py: {e}") print("Entering safe mode - REPL remains accessible") # This way REPL doesn't lock up.Special thanks to:
- The MicroPython team, sparing me from having to learn C.
- enchant97 for the Max7219 library.
- JumpZero for making the CET time script.
