summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/my9221/javaupm_my9221.i
blob: cb98ab268454e8071e5de8f01e509798d5b9f1f4 (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.hpp"
%{
    #include "my9221.hpp"
%}

%include "groveledbar.hpp"
%{
    #include "groveledbar.hpp"
%}

%include "grovecircularled.hpp"
%{
    #include "grovecircularled.hpp"
%}

%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);
        }
    }
%}