mirror of
https://github.com/eclipse/upm.git
synced 2025-07-03 18:31:13 +03:00
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:

committed by
Noel Eck

parent
76949d9358
commit
a842898bd5
10
src/lis3dh/jsupm_lis3dh.i
Normal file
10
src/lis3dh/jsupm_lis3dh.i
Normal 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"
|
||||
%}
|
Reference in New Issue
Block a user