X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fkaka%2Fcakelight%2FConsole.java;h=faa7054eb8dae53ec1dc481b10e65bbd2b60f590;hb=6b446d77ba31e5a4f5905689ef2345ed40b35296;hp=caae09b80793726b9e25ecf0245954a6116cb53f;hpb=884380465ae1ae412b7e5858ade7fd3f77da497f;p=kaka%2Fcakelight.git diff --git a/src/kaka/cakelight/Console.java b/src/kaka/cakelight/Console.java index caae09b..faa7054 100644 --- a/src/kaka/cakelight/Console.java +++ b/src/kaka/cakelight/Console.java @@ -33,7 +33,7 @@ public class Console extends Thread { } else if (input.matches("(b|brightness)\\s+[0-9]+")) { String[] split = input.split("\\s+"); config.leds.brightness = Integer.parseInt(split[1]); - System.out.println("setting brightness to " + split[1]); + System.out.println("setting brightness to " + config.leds.brightness); } else if (input.matches("q|quit")) { cakelight.turnOff(); System.out.println("stopping cakelight"); @@ -47,6 +47,14 @@ public class Console extends Thread { ); cakelight.setMode(new SingleColorMode(c)); System.out.println("setting color to " + c); + } else if (input.matches("(g|gamma)\\s+[0-9.]+")) { + String[] split = input.split("\\s+"); + config.gamma = Double.parseDouble(split[1]); + System.out.println("setting gamma to " + config.gamma); + } else if (input.matches("(s|saturation)\\s+[0-9.]+")) { + String[] split = input.split("\\s+"); + config.video.saturation = Double.parseDouble(split[1]); + System.out.println("setting saturation to " + config.video.saturation); } } catch (IOException e) { System.out.println("Error reading from command line"); @@ -54,5 +62,4 @@ public class Console extends Thread { } } } - }