Added an Ant build file and a small SPI test
[kaka/cakelight.git] / src / kaka / cakelight / CakeLight.java
index 5401c0f..9b32c02 100644 (file)
@@ -5,9 +5,9 @@ public class CakeLight {
     private Mode mode;
     private LedController ledController;
 
-    public CakeLight(Configuration config, LedController ledController) {
+    public CakeLight(Configuration config) {
         this.config = config;
-        this.ledController = ledController;
+        this.ledController = new LedController(config);
     }
 
     public void setMode(Mode mode) {