Fixup fanshim/uart pin colission
This commit is contained in:
parent
883b1017cd
commit
36a3116516
|
@ -4,12 +4,28 @@ The below commands will setup the Pimoroni Fan Shim. The commands will turn the
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
|
|
||||||
|
sudo -sHu root
|
||||||
|
|
||||||
|
# Move boot serial -> UART5 to avoid colission between UART1 and fanshim
|
||||||
|
nano -w /boot/firmware/usercfg.txt
|
||||||
|
# Add following to top of file
|
||||||
|
dtoverlay=uart5
|
||||||
|
nano -w /boot/firmware/cmdline.txt
|
||||||
|
# switch console=serial0,115200 to console=ttyAMA1,115200
|
||||||
|
|
||||||
|
systemctl reboot
|
||||||
|
|
||||||
|
# New pins
|
||||||
|
# Pin 32 : TX (connect to RX on adapter)
|
||||||
|
# Pin 33 : RX (connect to TX on adapter)
|
||||||
|
|
||||||
|
# Setup fanshim
|
||||||
sudo -sHu root
|
sudo -sHu root
|
||||||
git clone https://github.com/pimoroni/fanshim-python.git /opt/fanshim-python
|
git clone https://github.com/pimoroni/fanshim-python.git /opt/fanshim-python
|
||||||
cd /opt/fanshim-python
|
cd /opt/fanshim-python
|
||||||
./install.sh
|
./install.sh
|
||||||
cd examples
|
cd examples
|
||||||
sudo ./install-service.sh --on-threshold 55 --off-threshold 45 --delay 5
|
sudo ./install-service.sh --on-threshold 55 --off-threshold 45 --delay 5 --brightness 127
|
||||||
systemctl enable --now pimoroni-fanshim.service
|
systemctl enable --now pimoroni-fanshim.service
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue