From: Tomas Wenström Date: Sun, 23 Apr 2017 17:27:44 +0000 (+0200) Subject: Removed commented lines + todos X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=fa0f769bf3338643755de3624aa4b6db53cea6e6;p=kaka%2Fcakelight.git Removed commented lines + todos --- diff --git a/src/kaka/cakelight/LedController.java b/src/kaka/cakelight/LedController.java index 97f14c9..559719a 100644 --- a/src/kaka/cakelight/LedController.java +++ b/src/kaka/cakelight/LedController.java @@ -16,11 +16,6 @@ public class LedController { public LedController(Configuration config) { try { spi = SpiFactory.getInstance(SpiChannel.CS0); -// spi.write( -// (byte)0xff, (byte)0x0, (byte)0x0, -// (byte)0x00, (byte)0xff, (byte)0x0, -// (byte)0x0, (byte)0x00, (byte)0xff -// ); } catch (IOException e) { e.printStackTrace(); } diff --git a/src/kaka/cakelight/Main.java b/src/kaka/cakelight/Main.java index bc13c7f..52d3b61 100644 --- a/src/kaka/cakelight/Main.java +++ b/src/kaka/cakelight/Main.java @@ -16,12 +16,6 @@ public class Main { CakeLight cakelight = new CakeLight(config, new LedController(config)); cakelight.setMode(new AmbientMode()); cakelight.startLoop(); -// try { -// Thread.sleep(1000); -// } catch (InterruptedException e) { -// e.printStackTrace(); -// } -// cakelight.setMode(null); Runtime.getRuntime().addShutdownHook(new Thread(Main::printTimeStats)); } diff --git a/src/kaka/cakelight/VideoMode.java b/src/kaka/cakelight/VideoMode.java index 6da36f2..ca0bd53 100644 --- a/src/kaka/cakelight/VideoMode.java +++ b/src/kaka/cakelight/VideoMode.java @@ -38,8 +38,6 @@ public class VideoMode extends Mode { if (frameConsumer != null) frame.ifPresent(frameConsumer); frame.ifPresent(VideoMode.this::onFrame); // timeIt("frame", grabber::grabFrame); - // TODO: process frame - // TODO: save where the LedController can access it } } catch (IOException e) { e.printStackTrace();