Skip to content
durydevelopPublic

About

CPP library to handle GPIO on SBC and MCU with the same code.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

113 Commits

Folders and files

Repository files navigation

dpplib-mcu

prerequisites

libncurses5-dev lg

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.

Doxygen support for doc.

Module drivers ready to use for sensor board:

  • INA226 and INA228 current/voltage sensors.

About

CPP library to handle GPIO on SBC and MCU with the same code.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages