LED not blinking on RPI3 [message #1782792] |
Thu, 01 March 2018 09:19  |
Eclipse User |
|
|
|
Hello,
I am starting with Kura, and I wanted to turn on simple LEDs, I wrote this program in java and when I upload it to my PI it did't work.
Can anyone help me please.
protected void activate(ComponentContext componentContext) {
try {
KuraGPIOPin p = this.gpioService.getPinByTerminal(27, KuraGPIODirection.OUTPUT,
KuraGPIOMode.OUTPUT_OPEN_DRAIN, KuraGPIOTrigger.NONE);
p.open();
p.setValue(true);
System.out.println("=============LED is ON===================");
} catch (KuraGPIODeviceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (KuraUnavailableDeviceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (KuraClosedDeviceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03928 seconds