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

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.

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.