Skip to content

Simple C++ library that handles GPIO calls for BeagleBone Black

Notifications You must be signed in to change notification settings

UMKCRobotics/BeagleBoneBlack-GPIO

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

BeagleBoneBlack-GPIO

Simple C++ library that handles GPIO calls for BeagleBone Black

Features and methods

  1. Easy operations on gpio names:
  1. Easy operations on gpio sysfs descriptors:
  • GPIOManager::exportPin - Export pin (equivalent to i.e echo "68" > /sys/class/gpio/export)
  • GPIOManager::unexportPin - Unexport pin (equivalent to i.e echo "68" > /sys/class/gpio/unexport)
  • GPIOManager::setDirection - Set direction (equivalent to i.e echo "in" > /sys/class/gpio68/direction)
  • GPIOManager::getDirection - Get direction (equivalent to i.e cat /sys/class/gpio68/direction)
  • GPIOManager::setValue - Set value (equivalent to i.e echo "1" > /sys/class/gpio68/value)
  • GPIOManager::getValue - Get value (equivalent to i.e cat /sys/class/gpio68/value)
  • GPIOManager::setEdge - Set edge (equivalent to i.e echo "rising" > /sys/class/gpio68/edge)
  • GPIOManager::getEdge - Get edge (equivalent to i.e cat /sys/class/gpio68/edge)
  • GPIOManager::waitForEdge - Wait for edge event
  • GPIOManager::countExportedPins - Count already exported pins
  • GPIOManager::clean - Unexport all of already exported pins
  1. Export/unexport sanity check
  2. Table with pins being exported by default

About

Simple C++ library that handles GPIO calls for BeagleBone Black

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.3%
  • Python 3.7%