From 406c5d3f6f9acab2d743da00a875017166e7fc8f Mon Sep 17 00:00:00 2001 From: Piclaw Date: Tue, 16 Jun 2026 16:18:27 -0700 Subject: [PATCH 1/3] Move old .sh scripts to converted_shell_scripts/ All these scripts have been converted to Python (.py) or retired (read-only-fs, voice_bonnet). Moving to converted_shell_scripts/ for reference; the .py versions in the repo root are the active installers. --- arcade-bonnet.sh => converted_shell_scripts/arcade-bonnet.sh | 0 i2c.sh => converted_shell_scripts/i2c.sh | 0 install_wm8960.sh => converted_shell_scripts/install_wm8960.sh | 0 pi-eyes.sh => converted_shell_scripts/pi-eyes.sh | 0 read-only-fs.sh => converted_shell_scripts/read-only-fs.sh | 0 retrogame.sh => converted_shell_scripts/retrogame.sh | 0 rgb-matrix.sh => converted_shell_scripts/rgb-matrix.sh | 0 rtc.sh => converted_shell_scripts/rtc.sh | 0 spectro.sh => converted_shell_scripts/spectro.sh | 0 voice_bonnet.sh => converted_shell_scripts/voice_bonnet.sh | 0 10 files changed, 0 insertions(+), 0 deletions(-) rename arcade-bonnet.sh => converted_shell_scripts/arcade-bonnet.sh (100%) rename i2c.sh => converted_shell_scripts/i2c.sh (100%) rename install_wm8960.sh => converted_shell_scripts/install_wm8960.sh (100%) rename pi-eyes.sh => converted_shell_scripts/pi-eyes.sh (100%) rename read-only-fs.sh => converted_shell_scripts/read-only-fs.sh (100%) rename retrogame.sh => converted_shell_scripts/retrogame.sh (100%) rename rgb-matrix.sh => converted_shell_scripts/rgb-matrix.sh (100%) rename rtc.sh => converted_shell_scripts/rtc.sh (100%) rename spectro.sh => converted_shell_scripts/spectro.sh (100%) rename voice_bonnet.sh => converted_shell_scripts/voice_bonnet.sh (100%) diff --git a/arcade-bonnet.sh b/converted_shell_scripts/arcade-bonnet.sh similarity index 100% rename from arcade-bonnet.sh rename to converted_shell_scripts/arcade-bonnet.sh diff --git a/i2c.sh b/converted_shell_scripts/i2c.sh similarity index 100% rename from i2c.sh rename to converted_shell_scripts/i2c.sh diff --git a/install_wm8960.sh b/converted_shell_scripts/install_wm8960.sh similarity index 100% rename from install_wm8960.sh rename to converted_shell_scripts/install_wm8960.sh diff --git a/pi-eyes.sh b/converted_shell_scripts/pi-eyes.sh similarity index 100% rename from pi-eyes.sh rename to converted_shell_scripts/pi-eyes.sh diff --git a/read-only-fs.sh b/converted_shell_scripts/read-only-fs.sh similarity index 100% rename from read-only-fs.sh rename to converted_shell_scripts/read-only-fs.sh diff --git a/retrogame.sh b/converted_shell_scripts/retrogame.sh similarity index 100% rename from retrogame.sh rename to converted_shell_scripts/retrogame.sh diff --git a/rgb-matrix.sh b/converted_shell_scripts/rgb-matrix.sh similarity index 100% rename from rgb-matrix.sh rename to converted_shell_scripts/rgb-matrix.sh diff --git a/rtc.sh b/converted_shell_scripts/rtc.sh similarity index 100% rename from rtc.sh rename to converted_shell_scripts/rtc.sh diff --git a/spectro.sh b/converted_shell_scripts/spectro.sh similarity index 100% rename from spectro.sh rename to converted_shell_scripts/spectro.sh diff --git a/voice_bonnet.sh b/converted_shell_scripts/voice_bonnet.sh similarity index 100% rename from voice_bonnet.sh rename to converted_shell_scripts/voice_bonnet.sh From 5bf22128c20d135846261fe4a1e0b029cc2c7449 Mon Sep 17 00:00:00 2001 From: Piclaw Date: Tue, 16 Jun 2026 16:19:52 -0700 Subject: [PATCH 2/3] Update README: venv setup instructions, reflect completed conversion --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 243b0dc..132ceb2 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Many scripts are based heavily on get.pimoroni.com scripts! ## Python Scripts -We are in the process of converting our Shell Scripts to Python. Instructions for running specific scripts are available in the [Adafruit Learning System](https://learn.adafruit.com/). Here are the general setup instructions. +Our installer scripts are written in Python. Instructions for running specific scripts are available in the [Adafruit Learning System](https://learn.adafruit.com/). Here are the general setup instructions. ### Dependencies @@ -18,18 +18,18 @@ We are in the process of converting our Shell Scripts to Python. Instructions fo ### Prepare your system -To install the dependencies for the python scripts, run the following commands: +To install the dependencies for the Python scripts, run the following commands: ```bash -sudo apt-get install python3-pip -sudo pip3 install --upgrade click -sudo pip3 install --upgrade setuptools -sudo pip3 install --upgrade adafruit-python-shell +sudo apt-get install python3-pip python3-venv +python -m venv env --system-site-packages +source env/bin/activate +pip3 install adafruit-python-shell click ``` -Then to run the python script, type the following replacing "scriptname.py" with the actual script name: +Then to run the Python script, type the following replacing "scriptname.py" with the actual script name: ```bash -sudo python3 scriptname.py +sudo -E env PATH=$PATH python3 scriptname.py ``` ## Old Shell Scripts From 450723eca2e20f71de83f5f2b5ba69d509658063 Mon Sep 17 00:00:00 2001 From: Piclaw Date: Tue, 16 Jun 2026 16:21:51 -0700 Subject: [PATCH 3/3] README: add --upgrade and setuptools to pip install command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 132ceb2..d2ef8fe 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ To install the dependencies for the Python scripts, run the following commands: sudo apt-get install python3-pip python3-venv python -m venv env --system-site-packages source env/bin/activate -pip3 install adafruit-python-shell click +pip3 install --upgrade setuptools adafruit-python-shell click ``` Then to run the Python script, type the following replacing "scriptname.py" with the actual script name: