mirror of
https://github.com/eclipse/upm.git
synced 2025-07-06 03:41:13 +03:00
bma220: Initial implementation
This driver was developed based on the DFRobot Triple Axis accelerometer BMA220 (Tiny): http://www.dfrobot.com/index.php?route=product/product&product_id=1085 This device can only run at 3.3v DC. Do not connect to 5v. Added a private function definition for the installISR function. Done because C++ wasn't able to find the function definition for the java bindings. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:

committed by
Abhishek Malik

parent
53bc249b75
commit
db721845db
15
src/bma220/pyupm_bma220.i
Normal file
15
src/bma220/pyupm_bma220.i
Normal file
@ -0,0 +1,15 @@
|
||||
%module pyupm_bma220
|
||||
%include "../upm.i"
|
||||
%include "cpointer.i"
|
||||
|
||||
%include "stdint.i"
|
||||
|
||||
%feature("autodoc", "3");
|
||||
|
||||
%pointer_functions(float, floatp);
|
||||
|
||||
%include "bma220.h"
|
||||
%{
|
||||
#include "bma220.h"
|
||||
%}
|
||||
|
Reference in New Issue
Block a user