Private
Public Access
2
0

Isr.java: Fix ISR example to use pin 6 and sleep properly

Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Petre Eftime
2015-09-30 16:12:26 +03:00
committed by Brendan Le Foll
parent 42d169e003
commit 06e5e7dc11
2 changed files with 23 additions and 8 deletions

View File

@@ -30,6 +30,17 @@ import mraa.Aio;
public class AioA0 {
static {
try {
System.loadLibrary("mraajava");
} catch (UnsatisfiedLinkError e) {
System.err.println(
"Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" +
e);
System.exit(1);
}
}
public static void main(String[] args) {
Aio a0 = new Aio(0);
@@ -42,4 +53,4 @@ public class AioA0 {
}
}
//! [Interesting]
//! [Interesting]