Added console command to switch to video mode
authorTomas Wenström <tomas.wenstrom@gmail.com>
Mon, 25 Mar 2019 21:25:56 +0000 (22:25 +0100)
committerTomas Wenström <tomas.wenstrom@gmail.com>
Mon, 25 Mar 2019 21:25:56 +0000 (22:25 +0100)
src/kaka/cakelight/Console.java

index b82806f..7d864d8 100644 (file)
@@ -28,6 +28,8 @@ public class Console extends Thread {
                 if (input.matches("[0-5]")) {
                    cakelight.setMode(new AmbientMode(new String[] {input}));
                    System.out.println("setting ambient mode to " + input);
+               } else if (input.matches("v|video")) {
+                    cakelight.setMode(new VideoMode());
                } else if (input.matches("(b|brightness)\\s+[0-9]+")) {
                    String[] split = input.split("\\s+");
                    config.leds.brightness = Integer.parseInt(split[1]);