mirror of
https://github.com/eclipse/upm.git
synced 2025-07-03 18:31:13 +03:00
lcdks: renamed from sainsmartks, added backlight support
The sainsmartks driver has been reimplemented in it's own, new C/C++ library: lcdks (LCD Keypad Shield). In addition, support for an optional backlight GPIO was added. This was tested with the SainsmartKS and DFRobot LCD Keypad Shields. Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
20
src/lcdks/javaupm_lcdks.i
Normal file
20
src/lcdks/javaupm_lcdks.i
Normal file
@ -0,0 +1,20 @@
|
||||
%module javaupm_lcdks
|
||||
%include "../upm.i"
|
||||
%include "../upm_vectortypes.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%include "lcdks.hpp"
|
||||
%{
|
||||
#include "lcdks.hpp"
|
||||
%}
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_lcdks");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. \n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
%}
|
Reference in New Issue
Block a user