b7d2f52fc3986cdc6b424efbe12d7adafdc81730
- Fix initialization order: initialize self.presets before calling self.select() - Separate add() and edit() methods: add() creates new presets, edit() updates existing ones - Update all test files to use add() instead of edit() for creating presets - Add comprehensive auto/manual mode test - Remove tool.py (moved to led-tool project)
LED Driver - MicroPython
MicroPython-based LED driver application for ESP32 microcontrollers.
Prerequisites
- MicroPython firmware installed on ESP32
- USB cable for programming
- Python 3 with pipenv
Setup
-
Install dependencies:
pipenv install -
Deploy to device:
pipenv run dev
Project Structure
led-driver/
├── src/
│ ├── main.py # Main application code
│ ├── patterns.py # LED pattern implementations
│ ├── patterns_base.py # Base pattern class
│ ├── settings.py # Settings management
│ └── p2p.py # Peer-to-peer communication
├── test/ # Pattern tests
├── web_app.py # Web interface
├── dev.py # Development tools
└── Pipfile # Python dependencies
Languages
Python
99.9%
Shell
0.1%