https://github.com/noatpad/strawberry
A class-driven GPIO library for the Raspberry Pi in C++
https://github.com/noatpad/strawberry
raspberry-pi
Last synced: 2 months ago
JSON representation
A class-driven GPIO library for the Raspberry Pi in C++
- Host: GitHub
- URL: https://github.com/noatpad/strawberry
- Owner: noatpad
- Created: 2024-02-19T18:59:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T21:37:40.000Z (about 2 years ago)
- Last Synced: 2025-07-01T06:52:40.065Z (about 1 year ago)
- Topics: raspberry-pi
- Language: C++
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Strawberry
> A class-driven, GPIO library for the Raspberry Pi in C++
Inspired by interfaces that treats GPIO pins as devices, such as [gpiozero](https://github.com/gpiozero/gpiozero), the library provides an intuitively simple interface to manage and control components connected to the Raspberry Pi's GPIO.
```cpp
#include "strawberry.hpp"
int main() {
LED led(17);
Button button(18);
while (true) {
led.write(button.read());
}
}
```