Patrick Venture | ccd06d2 | 2017-04-10 15:21:32 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
Patrick Venture | dcdc84c | 2017-11-18 13:46:23 -0800 | [diff] [blame] | 3 | GPIO_BASE=$(cat /sys/devices/platform/ahb/ahb:apb/1e780000.gpio/gpio/*/base) |
Patrick Venture | ccd06d2 | 2017-04-10 15:21:32 -0700 | [diff] [blame] | 4 | GPIO_NUM=$(($GPIO_BASE + 24 + 3)) |
5 | |||||
6 | echo 1 > /sys/class/gpio/gpio${GPIO_NUM}/value | ||||
7 | sleep 5 | ||||
8 | echo 0 > /sys/class/gpio/gpio${GPIO_NUM}/value | ||||
9 | |||||
10 | exit 0; |