X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fkaka%2Fcakelight%2FCakeLight.java;h=9b32c026b34649b3bae075542f2b32d7837788ec;hb=f722ee0d05ade1f90b7bc5e51d68b3aed4d65652;hp=33e00353d15502109460c8223fea6fc28a9f2bf8;hpb=03b67a7377d6d23d517d33e47f338bb7859596ed;p=kaka%2Fcakelight.git diff --git a/src/kaka/cakelight/CakeLight.java b/src/kaka/cakelight/CakeLight.java index 33e0035..9b32c02 100644 --- a/src/kaka/cakelight/CakeLight.java +++ b/src/kaka/cakelight/CakeLight.java @@ -5,15 +5,15 @@ 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) { cleanup(); this.mode = mode; - mode.setFrameListener(ledController); + mode.setFrameListener(ledController::onFrame); mode.enter(config); }