diff --git a/doc/content/gateways/models/raspberry-pi/_index.md b/doc/content/gateways/models/raspberry-pi/_index.md index f7b443d030..ce71d8a6e1 100644 --- a/doc/content/gateways/models/raspberry-pi/_index.md +++ b/doc/content/gateways/models/raspberry-pi/_index.md @@ -231,15 +231,12 @@ echo '#!/bin/bash # Reset iC880a PIN SX1301_RESET_BCM_PIN=25 -echo "$SX1301_RESET_BCM_PIN" > /sys/class/gpio/export -echo "out" > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/direction -echo "0" > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value +pinctrl set $SX1301_RESET_BCM_PIN op dl sleep 0.1 -echo "1" > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value +pinctrl set $SX1301_RESET_BCM_PIN op dh sleep 0.1 -echo "0" > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value +pinctrl set $SX1301_RESET_BCM_PIN op dl sleep 0.1 -echo "$SX1301_RESET_BCM_PIN" > /sys/class/gpio/unexport # Test the connection, wait if needed. while [[ $(ping -c1 google.com 2>&1 | grep " 0% packet loss") == "" ]]; do