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):
DDigitalInput input(4);
input.begin();then read it:
int status = input;or:
int status=input.read();The result can be HIGH or LOW (Arduino style).
This code compiles on both Arduino and Raspberry.
See here for modules list and help.
- INA226 and INA228 current/voltage sensors.