blob: f925a33a8c6e98728546ad5bd2443a583e0d54d5 [file] [log] [blame]
Patrick Venturec8eec652017-04-10 15:21:32 -07001#!/bin/bash
2
Patrick Venture8837cc82017-11-18 13:46:23 -08003GPIO_BASE=$(cat /sys/devices/platform/ahb/ahb:apb/1e780000.gpio/gpio/*/base)
Patrick Venturec8eec652017-04-10 15:21:32 -07004GPIO_NUM=$(($GPIO_BASE + 24 + 3))
5
6echo 1 > /sys/class/gpio/gpio${GPIO_NUM}/value
7sleep 1
8echo 0 > /sys/class/gpio/gpio${GPIO_NUM}/value
9
10exit 0;