Removed commented lines + todos
authorTomas Wenström <tomas.wenstrom@gmail.com>
Sun, 23 Apr 2017 17:27:44 +0000 (19:27 +0200)
committerTomas Wenström <tomas.wenstrom@gmail.com>
Sun, 23 Apr 2017 17:27:44 +0000 (19:27 +0200)
src/kaka/cakelight/LedController.java
src/kaka/cakelight/Main.java
src/kaka/cakelight/VideoMode.java

index 97f14c9..559719a 100644 (file)
@@ -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();
         }
index bc13c7f..52d3b61 100644 (file)
@@ -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));
     }
 
index 6da36f2..ca0bd53 100644 (file)
@@ -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();