mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
1.2 KiB
1.2 KiB
LED Matrix Clock
A simple, modular clock application for Raspberry Pi using Adafruit LED Matrix displays.
Hardware Requirements
- Raspberry Pi 3
- 2x Adafruit 64x32 LED Matrices
- Adafruit Pi LED Matrix Bonnet
Installation
- Install required system packages:
sudo apt-get update
sudo apt-get install -y python3-pip python3-dev python3-setuptools
sudo apt-get install -y build-essential git
- Install the rpi-rgb-led-matrix library:
cd rpi-rgb-led-matrix-master
make
sudo make install
cd ..
- Install Python dependencies:
python3 -m pip install -r requirements.txt
- Install the DejaVu Sans font:
sudo apt-get install -y fonts-dejavu
Configuration
Edit the config/config.json file to customize:
- Timezone
- Display settings (brightness, dimensions)
- Clock format and update interval
Running the Clock
To start the clock:
cd src
python3 clock.py
To stop the clock, press Ctrl+C.
Project Structure
src/clock.py- Main clock applicationconfig_manager.py- Configuration managementdisplay_manager.py- LED matrix display handling
config/config.json- Configuration settings