mma7660: python example for mma7660 accelerometer

Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Zion Orent
2015-03-25 09:36:46 -04:00
committed by Mihai Tudor Panu
parent 13704fffe0
commit d8dc267fef
2 changed files with 86 additions and 0 deletions

View File

@ -1,5 +1,10 @@
%module pyupm_mma7660
%include "../upm.i"
%include "cpointer.i"
/* Send "int *" and "float *" to python as intp and floatp */
%pointer_functions(int, intp);
%pointer_functions(float, floatp);
%feature("autodoc", "3");