summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/ssd1351/javaupm_ssd1351.i
blob: 7adb59a711142ec099ae50302f219a9e9972d481 (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_ssd1351
%include "../upm.i"
%include "typemaps.i"
%include "stdint.i"

%ignore m_map;
%ignore font;

%include "gfx.h"
%{
    #include "gfx.h"
%}

%include "ssd1351.h"
%{
    #include "ssd1351.h"
%}

%pragma(java) jniclasscode=%{
    static {
        try {
            System.loadLibrary("javaupm_ssd1351");
        } catch (UnsatisfiedLinkError e) {
            System.err.println("Native code library failed to load. \n" + e);
            System.exit(1);
        }
    }
%}