2015-12-23 17:47:26 +02:00
|
|
|
%module (docstring="Basic Grove sensors") javaupm_grove
|
2015-09-16 18:07:11 +03:00
|
|
|
|
2015-08-05 19:43:31 +03:00
|
|
|
%include "../upm.i"
|
|
|
|
|
2015-09-16 18:07:11 +03:00
|
|
|
%apply int {mraa::Edge}
|
|
|
|
|
2016-08-01 17:07:55 -07:00
|
|
|
%include "grove.hpp"
|
2015-08-05 19:43:31 +03:00
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "grove.hpp"
|
2015-08-05 19:43:31 +03:00
|
|
|
%}
|
2015-08-12 16:44:30 +03:00
|
|
|
|
2016-08-01 17:07:55 -07:00
|
|
|
%include "grovebase.hpp"
|
|
|
|
%{
|
|
|
|
#include "grovebase.hpp"
|
|
|
|
%}
|
|
|
|
|
2016-09-13 16:32:04 -07:00
|
|
|
%include "grovebutton.hpp"
|
|
|
|
%{
|
|
|
|
#include "grovebutton.hpp"
|
|
|
|
%}
|
|
|
|
|
2016-08-01 17:07:55 -07:00
|
|
|
%include "groveled.hpp"
|
|
|
|
%{
|
|
|
|
#include "groveled.hpp"
|
|
|
|
%}
|
|
|
|
|
2016-09-13 16:32:04 -07:00
|
|
|
%include "grovelight.hpp"
|
|
|
|
%{
|
|
|
|
#include "grovelight.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%include "groverelay.hpp"
|
|
|
|
%{
|
|
|
|
#include "groverelay.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%include "groverotary.hpp"
|
|
|
|
%{
|
|
|
|
#include "groverotary.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%include "groveslide.hpp"
|
|
|
|
%{
|
|
|
|
#include "groveslide.hpp"
|
|
|
|
%}
|
|
|
|
|
2016-08-01 17:07:55 -07:00
|
|
|
%include "grovetemp.hpp"
|
|
|
|
%{
|
|
|
|
#include "grovetemp.hpp"
|
|
|
|
%}
|
2015-08-12 16:44:30 +03:00
|
|
|
|
2015-11-23 17:04:32 +02:00
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
static {
|
|
|
|
try {
|
|
|
|
System.loadLibrary("javaupm_grove");
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
System.exit(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|