lis3dh: add sensor support based on lis2ds12 module

Adding STMicro LIS3DH sensor support. This module is based on
the one for lis2ds12 (thanks, jontrulson!), but as sensors are
noticeably different, the contents underwent major rework.

Examples and basic API are left the same.

Tested on Intel Edison with Arduino board using both I2C and SPI.

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
This commit is contained in:
Alex Tereschenko
2017-12-03 18:46:15 +00:00
committed by Noel Eck
parent 76949d9358
commit a842898bd5
16 changed files with 2954 additions and 0 deletions

10
src/lis3dh/jsupm_lis3dh.i Normal file
View File

@ -0,0 +1,10 @@
%module jsupm_lis3dh
%include "../upm.i"
%include "../upm_vectortypes.i"
%include "lis3dh_defs.h"
%include "lis3dh.hpp"
%{
#include "lis3dh.hpp"
%}