Skip to content

Instantly share code, notes, and snippets.

@JarrettR
Created July 5, 2024 16:57
Show Gist options
  • Save JarrettR/77dccbe8da21f9c90cb35bb6e6b213ed to your computer and use it in GitHub Desktop.
Save JarrettR/77dccbe8da21f9c90cb35bb6e6b213ed to your computer and use it in GitHub Desktop.
Pi (legacy 32-bit) SPI screen and USB TTY gadget install
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