浏览代码

Disabled GPIO pins and system out led

jancoow 10 年之前
父节点
当前提交
6735334064
共有 3 个文件被更改,包括 4 次插入5 次删除
  1. 0 1
      control/LedHandler.java
  2. 2 2
      control/button/ButtonHandler.java
  3. 2 2
      control/joystick/JoystickHandler.java

+ 0 - 1
control/LedHandler.java

@@ -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
control/button/ButtonHandler.java

@@ -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
control/joystick/JoystickHandler.java

@@ -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(){