From 1aa5a65601669dc33c1ce8729ca607d847985a44 Mon Sep 17 00:00:00 2001 From: Yordan Dimitrov Date: Sat, 7 Jul 2018 11:07:58 +0300 Subject: Setting up a JSON configuration file to change LED paths without recompiling v1 - the change allows the paths to the LED folders to be changed without having to recompile the widget - the JSON file itself is included in this commit with the name "hvac.json" - the location which the parser expects the configuration file to be in is /etc v2 - optimised code in terms of opening and closing paths for writing - put afb header definitions together v3 - removed all caps warning notifications Change-Id: If075c6650d8802849cbd706be4adbca9f1996c9e Signed-off-by: Yordan Dimitrov --- hvac.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 hvac.json (limited to 'hvac.json') diff --git a/hvac.json b/hvac.json new file mode 100644 index 0000000..6e7d0db --- /dev/null +++ b/hvac.json @@ -0,0 +1,7 @@ +{ + "ledtemp": { + "red": "/sys/class/leds/blinkm-3-9-red/brightness", + "green": "/sys/class/leds/blinkm-3-9-green/brightness", + "blue": "/sys/class/leds/blinkm-3-9-blue/brightness" + } +} \ No newline at end of file -- cgit 1.2.3-korg