beaglebone_mmap icon indicating copy to clipboard operation
beaglebone_mmap copied to clipboard

Example code on accessing BeagleBone GPIO through mmap()

The above code contains a header file, beaglebone_gpio.h and a source file gpi.c Just compile the gpi.c on your beaglebone using gcc, and run it. Make sure you have first exported pin P9_12 as a GPIO using an appropriate device tree overlay