From c973dc1c2a9acf0901976d1d39eb87327ba2ec40 Mon Sep 17 00:00:00 2001 From: Tyler Porter Date: Sun, 3 Nov 2024 21:22:21 -0500 Subject: [PATCH] Allow selection of driver version and set 14ab2ff as current default --- README.md | 1 + config.json.example | 3 ++- install.sh | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 94b8f16a..b9a79e84 100755 --- a/README.md +++ b/README.md @@ -258,6 +258,7 @@ A default `config.json.example` file is included for reference. Copy this file t "pregame_weather" Bool If enabled, will display the weather for the game's location on the pregame screen. "debug" Bool Game and other debug data is written to your console. "demo_date" String A date in the format YYYY-MM-DD from which to pull data to demonstrate the scoreboard. A value of `false` will disable demo mode. +"driver_version" String A branch name or commit SHA for the installed rpi-rgb-led-matrix library. Falls back to "master" if not present. ``` ### Delaying Board Update diff --git a/config.json.example b/config.json.example index fb159e6e..321bbf3f 100644 --- a/config.json.example +++ b/config.json.example @@ -48,5 +48,6 @@ "pregame_weather": true, "scrolling_speed": 2, "debug": false, - "demo_date": false + "demo_date": false, + "driver_version": "14ab2ff" } diff --git a/install.sh b/install.sh index b9563b98..12c9e745 100755 --- a/install.sh +++ b/install.sh @@ -134,6 +134,8 @@ if [ "$SKIP_MATRIX" = false ]; then cd submodules git clone https://github.com/hzeller/rpi-rgb-led-matrix.git matrix cd matrix + # Checkout the branch or commit specified in config.json for rpi-rgb-led-matrix + git checkout $(jq -re '.driver_version // "master"' ../../config.json) git pull make build-python PYTHON="$PYTHON" sudo make install-python PYTHON="$PYTHON"