Getting the Source
Current Build Platforms
The Device I/O Project currently supports cross-compiling on Linux x86 platforms for the Raspberry Pi (armhf).
The artifacts for the build should be build/so/libdio.so and build/jar/dio.jar.
Running the GPIOLEDSample Application
1 Raspberry Pi
The dio.jar, dio.samples.jar and libdio.so should be in your current directory, and java should be in your path.
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
Note the use of "sudo." This is so that the java process has the proper permissions to access the GPIO device.