38 lines
892 B
Markdown
38 lines
892 B
Markdown
# 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
|
|
|
|
1. Install dependencies:
|
|
```bash
|
|
pipenv install
|
|
```
|
|
|
|
2. Deploy to device:
|
|
```bash
|
|
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
|
|
```
|