Tip:
Highlight text to annotate it
X
Hello and welcome. This is a demo of the Minix GPIO driver on the BeagleBone Black. I'm mounting
the gpio pseudo-filesystem to /gpio. It's populated with pseudo files for a couple of
test pins.
Reading the RIGHT file gives the input value on the pin. Reading RIGHTIntr prints whether
an input interrupt has occured. I'm now physically applying 3.3V to the pin. The pin goes high.
Reading RIGHTIntr shows that an interrupt has occured and clears the interrupt flag.
Reading it again prints 0.
Now I'm going to demonstrate outputs. Reading the LCD_EN file gives the ouput value of the
pin. Accessing LCD_ENOn drives the pin high. Accessing LCD_ENOff pulls the pin low.
When finished with gpio, you can unmount it like any other file system.
You can find out more about my project at minix-i2c.blogspot.ca Thanks for watching.