2016-01-29 16:19:38 -08:00
|
|
|
%module javaupm_ili9341
|
|
|
|
|
%include "../upm.i"
|
|
|
|
|
%include "stdint.i"
|
|
|
|
|
%include "typemaps.i"
|
|
|
|
|
|
|
|
|
|
%apply uint8_t *INPUT { uint8_t *addr }
|
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "ili9341_gfx.hpp"
|
2016-01-29 16:19:38 -08:00
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "ili9341_gfx.hpp"
|
2016-01-29 16:19:38 -08:00
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "ili9341.hpp"
|
2016-01-29 16:19:38 -08:00
|
|
|
%}
|
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "ili9341.hpp"
|
2016-01-29 16:19:38 -08:00
|
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
|
static {
|
|
|
|
|
try {
|
|
|
|
|
System.loadLibrary("javaupm_ili9341");
|
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
|
System.exit(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%}
|