mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
ims: Fixed IMS java example
* Fixed a compile issue for the JAVA example * Added C header to swig java/js interface files Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
9a4f0cae0c
commit
929244b27a
@ -158,7 +158,7 @@ add_example(DFREC_Example dfrec)
|
||||
add_example(SHT1X_Example sht1x)
|
||||
add_example(MS5803_Example ms5803)
|
||||
add_example(ECEZO_Example ecezo)
|
||||
add_example(IMS_Example ecezo)
|
||||
add_example(IMS_Example ims)
|
||||
|
||||
add_example_with_path(Jhd1313m1_lcdSample lcd i2clcd)
|
||||
add_example_with_path(Jhd1313m1Sample lcd i2clcd)
|
||||
|
@ -31,7 +31,7 @@ public class IMS_Example
|
||||
// ! [Interesting]
|
||||
|
||||
// Instantiate a IMS instance using bus 0 and default i2c address
|
||||
IMS sensor = new IMS(0);
|
||||
IMS sensor = new IMS((short)0);
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include "ims.hpp"
|
||||
%}
|
||||
|
||||
%include "ims.h"
|
||||
%include "ims.hpp"
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
|
@ -5,4 +5,5 @@
|
||||
#include "ims.hpp"
|
||||
%}
|
||||
|
||||
%include "ims.h"
|
||||
%include "ims.hpp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user