https://github.com/durydevelop/dpplibmcu
CPP library to handle GPIO on SBC and MCU with the same code.
https://github.com/durydevelop/dpplibmcu
Last synced: 7 months ago
JSON representation
CPP library to handle GPIO on SBC and MCU with the same code.
- Host: GitHub
- URL: https://github.com/durydevelop/dpplibmcu
- Owner: durydevelop
- Created: 2024-11-01T16:45:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-05T17:29:27.000Z (8 months ago)
- Last Synced: 2025-07-05T18:04:22.015Z (8 months ago)
- Language: C++
- Size: 24 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dpplib-mcu
dpplib-mcu is a library that allow you (...or aim to) writing program for MCUs (like Arduino) and SBCs (like Raspberry pi) using the same code.
For example, You can read a digital pin 4 instantiating the class and call begin() (arduino style):
```cpp
DDigitalInput input(4);
input.begin();
```
then read it:
```cpp
int status = input;
```
or:
```cpp
int status=input.read();
```
The result can be HIGH or LOW (Arduino style).
This code compiles on both Arduino and Raspberry.
***
#### See [here](src) for modules list and help.
### Doxygen support for doc.
### Drivers modules for ready to use some sensor board:
- INA226 and INA228 current/voltage sensors.