#!/bin/sh set -e if [ ! -d "/sys/class/gpio/gpio268" ] then echo 268 > /sys/class/gpio/export fi cd /sys/class/gpio/gpio268 echo out > direction # about 16 kHz while true do echo 1 > value sleep 0.000122 echo 0 > value sleep 0.000122 done