Moved to main directory instead of src folder

This commit is contained in:
jancoow
2015-05-24 18:03:16 +02:00
parent 1225a82a07
commit 2338366080
14 changed files with 0 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
package control.button;
import java.awt.Color;
import main.Window;
import control.LedHandler;
public class Button {
Color color;
int ledID;
int buttonID;
LedHandler led;
public Button(int buttonID, int ledID, LedHandler led)
{
color = new Color(255,255,255);
this.ledID = ledID;
this.buttonID = buttonID;
this.led = led;
setLed();
}
private void setLed()
{
if(Window.ON_RASP)
{
led.setLed(ledID, color.getGreen(), color.getRed(), color.getBlue());
led.show();
}
}
public void setColor(Color newColor)
{
color = newColor;
setLed();
}
public Color getColor(){
return color;
}
public int getButtonID()
{
return buttonID;
}
}