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