Logo
Explore Help
Register Sign In
Raspberries/upm
Public Access
2
0
Fork 0
You've already forked upm
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
b3a8fd71726151115bcec6dfccf625e7ed6e285f
upm/src/wheelencoder/javaupm_wheelencoder.i

19 lines
394 B
OpenEdge ABL
Raw Normal View History

wheelencoder: Initial implementation This driver was developed for the DFRobot Wheel Encoder, though it could be used for any counting time-based task using a digital i/o pin to generate interrupts. http://www.dfrobot.com/index.php?route=product/product&product_id=98 If you want to use more than one encoder, simply create a class instance for each one. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: sisinty sasmita patra <sisinty.s.patra@intel.com>
2015-08-27 16:57:16 -06:00
%module javaupm_wheelencoder
%include "../upm.i"
%{
#include "wheelencoder.h"
%}
%include "wheelencoder.h"
java: Added auto load library code in upm SWIG interfaces Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-11-23 17:04:32 +02:00
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_wheelencoder");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 111ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API