GPIO Programming (96Boards)

Skill LevelArea of FocusOperating System
BeginnerEmbedded,
IoT, Sensors
Linux

This project will demonstrate how to access the GPIO, I2C and SPI on the DragonBoard™ 410c.

Explore the three libraries that address accessing the hardware. One is super simple, really only meant for accessing the GPIO pins written in C and has Python bindings (96BoardsGPIO). Another is also written in C and allows access of GPIO, I2C and SPI. This one also has Python bindings (libsoc), but it’s a bit harder to use: with more power comes more complexity. And finally there is a third library written in C++ that also allows access of GPIO, I2C, and SPI. Not only does this one have Python bindings, but also includes Javascript and Java bindings (mraa). All three of these libraries are open source, available on github.com, and with some reading, are not too hard to use.