Skip to content

Instantly share code, notes, and snippets.

View nhorvath's full-sized avatar

Nick Horvath nhorvath

  • Scivantage
  • Fort Salonga, NY
View GitHub Profile
@nhorvath
nhorvath / gpio.sh
Last active July 13, 2016 16:07 — forked from jefflarkin/gpio.sh
BASH functions for using the C.H.I.P. GPIO pins.
#!/bin/bash
GPIO_OFFSET=408
CSI_OFFSET=132
#FIXME Add usage() function to improve documentation
# Enable exposure of the specified GPIO pin (0-8)
gpio_enable()
{
if [[("$1" -lt 0) || ("$1" -gt 8)]] ; then