Skip to content

ewainberg/led-matrix

Repository files navigation

Installation

1. Create a virtual environment

It is recommended to use a virtual environment to isolate dependencies.

python3 -m venv venv
source venv/bin/activate

2. Install dependencies

pip install -r requirements.txt

3. Create the environment file

Copy the example file:

cp .env.example .env
  • Add your weather API key to .env
  • The NEXT_URL variable can be ignored

4. Configure device settings

Copy the example device configuration:

cd config
cp device.py.example device.py
cd ..

Edit config/device.py as needed for your matrix setup.


Running the Application

When running the app, you will likely encounter a permission error related to /dev/mem.

The rpi_ws281x library requires elevated permissions because it accesses physical memory and PWM hardware directly.

Run the app as root using the Python interpreter inside your virtual environment:

sudo /home/user/led-matrix/venv/bin/python /home/user/led-matrix/app.py

Replace /home/user/led-matrix with the correct path to your project.

About

ESP32 project with an LED matrix to display much informations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors