Skip to content

Simple C++ API for manipulating GPIO in a Beagle Bone Black.

Notifications You must be signed in to change notification settings

aafavelino/GPIO-API

 
 

Repository files navigation

license

Overview

This is an API to control Beaglebone's GPIO and an application to exemplify the use of API on controling cpu usage of Jessie (Debian for Beaglebone) system's processes. The API was developed in C++ and can be used to: export, unexport, get direction, set direction, set value and get value of pins. The example catches cpu usage on file /proc/stat and catches cpu usage of processes on file /proc/[pid]/stat.

Installation

Using this application requires Boost Filesystem Library:

Debian Based: sudo apt-get install libboost-all-dev

Fedora: yum install boost-devel

Usage

Check documentation.

Example

#include <iostream>
#include "GPIOSystem.h"
#include "Pin.h"

int main(void) {
	Pin redled {"P9_14", GPIOSystem::Direction::IN, GPIOSystem::Value::LOW};
  	return 0;
}

Team

Vinicius Campos Vitor Rodrigues Greati
Vinícius Campos Vitor Greati

About

Simple C++ API for manipulating GPIO in a Beagle Bone Black.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.9%
  • Shell 4.1%