Skip to content

Commit

Permalink
Update _index.md
Browse files Browse the repository at this point in the history
change the start.sh script to use the newer pinctrl methods
  • Loading branch information
jwende authored Jan 14, 2025
1 parent 46a5a83 commit 56d5b47
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions doc/content/gateways/models/raspberry-pi/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56d5b47

Please sign in to comment.