X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fkaka%2Fcakelight%2FCakeLight.java;h=6a00a377c24d1e6eb4e4d598230a73636796479e;hb=cd28f68c5085af337dc710d04634ad38f7af2438;hp=33e00353d15502109460c8223fea6fc28a9f2bf8;hpb=03b67a7377d6d23d517d33e47f338bb7859596ed;p=kaka%2Fcakelight.git diff --git a/src/kaka/cakelight/CakeLight.java b/src/kaka/cakelight/CakeLight.java index 33e0035..6a00a37 100644 --- a/src/kaka/cakelight/CakeLight.java +++ b/src/kaka/cakelight/CakeLight.java @@ -8,12 +8,13 @@ public class CakeLight { public CakeLight(Configuration config, LedController ledController) { this.config = config; this.ledController = ledController; + Color.calculateGammaCorrection(config.gamma); } public void setMode(Mode mode) { cleanup(); this.mode = mode; - mode.setFrameListener(ledController); + mode.setFrameListener(ledController::onFrame); mode.enter(config); } @@ -24,6 +25,7 @@ public class CakeLight { } public void startLoop() { + Console.start(this, config); // TODO // FrameGrabber grabber = FrameGrabber.from(config); // grabber.prepare();