Created
July 5, 2024 16:57
-
-
Save JarrettR/77dccbe8da21f9c90cb35bb6e6b213ed to your computer and use it in GitHub Desktop.
Pi (legacy 32-bit) SPI screen and USB TTY gadget install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip3 install -y adafruit-python-shell | |
git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/ | |
cd Raspberry-Pi-Installer-Scripts/ | |
#https://www.tal.org/tutorials/setup-raspberry-pi-headless-use-usb-serial-console | |
#cmdline additions: | |
sed -i 's/fbcon=font:VGA8x8/fbcon=font:VGA8x8 modules-load=dwc2,g_serial/g' adafruit-pitft.py | |
#boot additions | |
sed -i 's/dtparam=i2c_arm=on/dtparam=i2c_arm=on\ndtoverlay=dwc2/g' adafruit-pitft.py | |
systemctl enable getty@ttyGS0.service | |
python adafruit-pitft.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment