Added bindings for iLight sensors.

Removed old interfaces C++ examples.

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
This commit is contained in:
Serban Waltter
2018-06-21 16:44:23 +03:00
parent 555a0f9f82
commit e489f6c180
34 changed files with 123 additions and 471 deletions

View File

@ -4,6 +4,7 @@ upm_mixed_module_init (NAME bh1750
C_SRC bh1750.c
CPP_HDR bh1750.hpp
CPP_SRC bh1750.cxx
IFACE_HDR iLight.hpp
FTI_SRC bh1750_fti.c
CPP_WRAPS_C
REQUIRES mraa utilities-c)

View File

@ -1,7 +1,17 @@
#ifdef SWIGPYTHON
%module (package="upm") htu21d
#endif
%import "interfaces/new_interfaces.i"
%include "../common_top.i"
/* BEGIN Java syntax ------------------------------------------------------- */
#ifdef SWIGJAVA
%typemap(javaimports) SWIGTYPE %{
import upm_new_interfaces.*;
%}
JAVA_JNI_LOADLIBRARY(javaupm_bh1750)
#endif
/* END Java syntax */