From 973a79c8033c9d5f7cea421734ac08d827acb44d Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 25 Aug 2021 10:10:49 +0200 Subject: [PATCH] =?UTF-8?q?Layer=202=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/code.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/code.py b/code/code.py index 3e10094..6e5bf3e 100644 --- a/code/code.py +++ b/code/code.py @@ -41,6 +41,10 @@ layer_1 = {4: Keycode.COMMA, 14: Keycode.SIX, 15: Keycode.NINE} +layer_2 = {4: Keycode.COMMA, + 5: Keycode.ONE, + 6: Keycode.FOUR, + 7: Keycode.SEVEN} layer_3 = {6: ConsumerControlCode.VOLUME_DECREMENT, 7: ConsumerControlCode.SCAN_PREVIOUS_TRACK, @@ -50,12 +54,14 @@ layer_3 = {6: ConsumerControlCode.VOLUME_DECREMENT, 15: ConsumerControlCode.SCAN_NEXT_TRACK} layers = {1: layer_1, + 2: layer_2, 3: layer_3} # Define the modifier key and layer selector keys modifier = keys[0] selectors = {1: keys[1], + 2: keys[2], 3: keys[3]} # Start on layer 1 @@ -63,6 +69,7 @@ current_layer = 1 # The colours for each layer colours = {1: (255, 0, 255), + 2: (0, 255, 255), 3: (255, 255, 0)} layer_keys = range(4, 16)