Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vovagorodok/arduinopin
- Owner: vovagorodok
- License: mit
- Created: 2022-11-15T22:57:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T12:32:48.000Z (8 months ago)
- Last Synced: 2024-06-14T11:26:13.621Z (8 months ago)
- Topics: arduino, pin, platformio
- Language: C++
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```