From 415550515357984e7794c7876dfba89f845f7396 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Mon, 7 Apr 2025 17:47:55 -0500 Subject: [PATCH] Update README.md added python install --- README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 85a3a979..f910bb92 100644 --- a/README.md +++ b/README.md @@ -10,21 +10,29 @@ A simple, modular clock application for Raspberry Pi using Adafruit LED Matrix d ## Installation -1. Install the rpi-rgb-led-matrix library from the existing folder: +1. Install required system packages: +```bash +sudo apt-get update +sudo apt-get install -y python3-pip python3-dev python3-setuptools +sudo apt-get install -y build-essential git +``` + +2. Install the rpi-rgb-led-matrix library: ```bash cd rpi-rgb-led-matrix-master make sudo make install +cd .. ``` -2. Install Python dependencies: +3. Install Python dependencies: ```bash -pip install -r requirements.txt +python3 -m pip install -r requirements.txt ``` -3. Install the DejaVu Sans font (if not already installed): +4. Install the DejaVu Sans font: ```bash -sudo apt-get install fonts-dejavu +sudo apt-get install -y fonts-dejavu ``` ## Configuration @@ -39,7 +47,7 @@ Edit the `config/config.json` file to customize: To start the clock: ```bash cd src -python clock.py +python3 clock.py ``` To stop the clock, press Ctrl+C.