From cde9572418f2916535d64cbb5391644b48476c25 Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Sun, 31 Dec 2017 11:42:55 -0800 Subject: [PATCH] Put CTS pin in alt3 mode --- scripts/setup_rpi.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/setup_rpi.sh b/scripts/setup_rpi.sh index 00bd48f..efd80da 100755 --- a/scripts/setup_rpi.sh +++ b/scripts/setup_rpi.sh @@ -9,7 +9,7 @@ apt-get dist-upgrade -y # Install packages apt-get install -y avahi-daemon avrdude minicom python3-pip python3-smbus \ - i2c-tools python3-rpi.gpio libjpeg8 + i2c-tools python3-rpi.gpio libjpeg8 wiringpi pip3 install --upgrade tornado sockjs-tornado pyserial # Clean @@ -57,6 +57,7 @@ adduser hawkeye video sed -i 's/^exit 0$//' /etc/rc.local echo "/usr/bin/tvservice -o" >> /etc/rc.local echo "mount -o remount,ro /boot" >> /etc/rc.local +echo "gpio mode 27 alt3" >> /etc/rc.local # Enable serial CTS on pin 27 echo "exit 0" >> /etc/rc.local # Dynamic clock to save power -- 2.27.0