Private
Public Access
2
0

maa: Initial commit of maa, a python and nodejs I2C skeleton only

This commit is contained in:
Brendan Le Foll
2014-04-08 18:43:26 +01:00
commit 00ba95bac0
31 changed files with 1055 additions and 0 deletions

11
examples/readi2c.cpp Normal file
View File

@@ -0,0 +1,11 @@
#include "../src/maa.h"
int
main ()
{
maa::I2C i2c(28, 27);
int addr = 0x62;
char data[2];
int ret = i2c.read(addr, data, 2);
return ret;
}