Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Running the GPIOLEDSample Application

Image RemovedImage Added

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.

...