blob: 0534108d0980093b7c974078cce2476ea8f76db9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
%module javaupm_my9221
%include "../upm.i"
%include "my9221.h"
%{
#include "my9221.h"
%}
%include "groveledbar.h"
%{
#include "groveledbar.h"
%}
%include "grovecircularled.h"
%{
#include "grovecircularled.h"
%}
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_my9221");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}
|