An open API service indexing awesome lists of open source software.

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++

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());
}
}
```