Disabled GPIO pins and system out led

This commit is contained in:
jancoow
2015-06-08 14:20:16 +02:00
parent 38a0bc4620
commit 6735334064
3 changed files with 4 additions and 5 deletions
-1
View File
@@ -49,7 +49,6 @@ public class LedHandler {
if(led<0)
return;
try {
System.out.println("Set the led with " + r);
out.write( "1|" + led + "|" + r + "|" + g + "|" + b + "\n" );
out.flush();
}
+2 -2
View File
@@ -39,8 +39,8 @@ public class ButtonHandler implements KeyListener{
buttons.add(new Button(5, 4, led));
buttons.add(new Button(6, 5, led));
if (Window.ON_RASP)
addGpioListeners();
// if (Window.ON_RASP)
// addGpioListeners();
}
+2 -2
View File
@@ -30,8 +30,8 @@ public class JoystickHandler implements KeyListener{
listeners = new ArrayList<JoystickListener>();
keys = new HashSet<Integer>();
j = new Joystick();
if(Window.ON_RASP)
addGpioListeners();
// if(Window.ON_RASP)
// addGpioListeners();
}
private void addGpioListeners(){