Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vovagorodok/arduinopin

Objective oriented pin classes
https://github.com/vovagorodok/arduinopin

arduino pin platformio

Last synced: 3 months ago
JSON representation

Objective oriented pin classes

Awesome Lists containing this project

README

        

# Arduino Pin

Objective arduino pins like:
- `DigitalPin` - pin object, can be used as input or output
- `DigitalInputPin` - open collector input
- `DigitalPulledPin` - pulled input
- `DigitalOutputPin` - output
- `AnalogInputPin` - analog input
- `ScopedOn/Off` - RAII switch that turns off/on when out of scope

## Configuration
Library requires c++14 or greater.
For PlatformIO. Add to `platformio.ini`:
```
build_flags =
-std=c++14
-std=gnu++14
build_unflags =
-std=gnu++11
```

For Arduino IDE. At boards package installation folder create `platform.local.txt`:
```
compiler.cpp.extra_flags=-std=c++14
```