Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 761 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 761 Bytes
title permalink redirect_from
Examples on how to use GPIO using mraa library
/documentation/consumer/guides/mraa/gpio/
/documentation/ConsumerEdition/guides/mraa/gpio/

Examples on how to use GPIO using mraa library

Following examples are provided in this repository to use GPIO using MRAA library.

  1. mraa_gpio.c
  2. mraa_gpio.cpp
  3. mraa_gpio.py

Usage:

Prerequisite: Debian running on 96Boards CE with libmraa installed

  • Copy the examples to 96Boards CE
  • Build the C/C++ examples:
$ gcc mraa_gpio.c -o gpio_c
$ g++ mraa_gpio.cpp -o gpio_c++
  • Execute the examples:
$ sudo ./gpio_c
$ sudo ./gpio_c++
$ sudo python mraa_gpio.py

Expected Behaviour:

Toggles GPIO23 and GPIO24 on Low Speed expansion header.