https://github.com/bakercp/ofxcppgpio
An openFrameworks addon wrapping CppGPIO, a C++11 GPIO library for embedded systems on Linux.
https://github.com/bakercp/ofxcppgpio
Last synced: 8 months ago
JSON representation
An openFrameworks addon wrapping CppGPIO, a C++11 GPIO library for embedded systems on Linux.
- Host: GitHub
- URL: https://github.com/bakercp/ofxcppgpio
- Owner: bakercp
- Created: 2016-04-02T03:06:26.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-17T15:24:36.000Z (almost 10 years ago)
- Last Synced: 2025-10-09T16:46:20.625Z (8 months ago)
- Language: C++
- Homepage:
- Size: 140 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ofxCppGPIO
An openFrameworks addon wrapping [CppGPIO](https://github.com/JoachimSchurig/CppGPIO), a C++11 GPIO library for embedded systems on Linux.
This is currently designed to work with Raspberry Pi and is an alternative to the slower SYSFS GPIO approach.
See the examples for use.
## Performance
A quick performance test on a Raspberry Pi 3 in Release mode:
```
for-loop-test:
# Pulses: 10000000 in 241598592
Period: 24 ns.
Freq: 41666666 Hz (41.6667 MHz)
for-loop-unwind-test:
# Pulses: 10000000 in 240994171
Period: 24 ns.
Freq: 41666666 Hz (41.6667 MHz)
min-sleep-test:
# Pulses: 100000 in 6084006480 w/ 1 ns sleep.
Period: 60840 ns.
Freq: 16436 Hz
Freq: 16436 Hz (0.016436 MHz)
Minimum sleep time is 60816 ns (60.816 μs)
```

_41.7MHz Square(ish) Wave_
## A Collection of Square Waves
