- Loading...
| CSS Stylesheet |
|---|
.wiki-content .confluenceTh,
.wiki-content .confluenceTd {
border: 2px solid #e76f00;
} |
| This Project was inactive and subsequently dissolved by virtue of losing its sponsoring Group. |
...
gcc-linaro-arm-linux-gnueabihf-raspbian
JDK 8
...
hg clone http://hg.openjdk.java.net/dio/devcd devexport PI_TOOLS=<path to raspberry pi toolchain>export JAVA_HOME=<path to JDK8>make |
The artifacts for the build should be build/so/libdio.so and build/jar/dio.jar.
...
1. Connect the cathode of the LED to GND on the Raspberry Pi.
2. Connect the anode of the LED to a resistor (540 ohm pictured above).
3. Connect the other end of the resistor to GPIO18 on the Raspberry Pi
...
sudo java -Djava.security.policy=./java.policy -classpath .:./dio.jar:dio-samples.jar -Djava.library.path=. -Djdk.dio.registry=./dio.properties dio.gpio.GPIOLEDSample |
Note the use of "sudo." This is so that the java process has the proper permissions to access the GPIO device.