##C examples

[gpiolib.c](https://github.com/tanzilli/gpiolib) is a simple library to 
manage the gpio via sysfs in C.

##Output example

<pre class="prettyprint">
#define GPIO_IN  1
#define GPIO_OUT 0

gpioexport(80);
gpiosetdir(80,GPIO_OUT);
for (;;) {
    gpiosetbits(80);
    gpioclearbits(80);
}
</pre>

##Input example

<pre class="prettyprint">
#define GPIO_IN  1
#define GPIO_OUT 0

gpioexport(80);
for (;;) {
    printf("%d\n",gpiogetbits(84));
}
</pre>

The gpiolib.c library is available on [Github](https://github.com/tanzilli/gpiolib). 
