New ambient mode
[kaka/cakelight.git] / src / kaka / cakelight / Main.java
index e071fec..59e03ff 100644 (file)
@@ -13,15 +13,9 @@ public class Main {
        Configuration config = Configuration.from("config.properties");
        log("Running with config:\n" + config);
 
-       CakeLight cakelight = new CakeLight(config, new LedController());
-       cakelight.setMode(new VideoMode());
+       CakeLight cakelight = new CakeLight(config, new LedController(config));
+       cakelight.setMode(new AmbientMode(args));
        cakelight.startLoop();
-//     try {
-//         Thread.sleep(1000);
-//     } catch (InterruptedException e) {
-//         e.printStackTrace();
-//     }
-//     cakelight.setMode(null);
        Runtime.getRuntime().addShutdownHook(new Thread(Main::printTimeStats));
     }