- Loading...
...
Prerequisites:
1 LED
1 resistor
1 breadboard
1 Raspberry Pi
jumper wires
...
sudo java -Djava.security.policy=./java.policy -classpath .:./dio.jar:dio-samples.jar -Djava.library.path=. -Djdk.dio.registry=./dio.properties com.oracle. dio.samples.gpio.GPIOLEDSample |
Note the use of "sudo." This is so that the java process has the proper permissions to access the GPIO device.
...