Objective arduino pins like:
DigitalPin
- pin object, can be used as input or outputDigitalInputPin
- open collector inputDigitalPulledPin
- pulled inputDigitalOutputPin
- outputAnalogInputPin
- analog inputScopedOn/Off
- RAII switch that turns off/on when out of scope
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