Patrick Venture | ccd06d2 | 2017-04-10 15:21:32 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
Andrew Jeffery | a221e43 | 2024-08-26 11:45:10 +0930 | [diff] [blame^] | 3 | GPIO_BASE=$(cat /sys/devices/platform/ahb/1e780000.apb/1e780000.gpio/gpio/*/base) |
Patrick Williams | 8c22623 | 2023-04-15 20:05:21 -0500 | [diff] [blame] | 4 | GPIO_NUM=$((GPIO_BASE + 24 + 3)) |
Patrick Venture | ccd06d2 | 2017-04-10 15:21:32 -0700 | [diff] [blame] | 5 | |
6 | echo 1 > /sys/class/gpio/gpio${GPIO_NUM}/value | ||||
7 | sleep 1 | ||||
8 | echo 0 > /sys/class/gpio/gpio${GPIO_NUM}/value | ||||
9 | |||||
10 | exit 0; |