From 8c6cc785137489bb786eb00a895c633a1d51b932 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 19 Oct 2020 17:37:34 +0200 Subject: Implement Keymap --- iot_barcode_scanner/static.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'iot_barcode_scanner') diff --git a/iot_barcode_scanner/static.py b/iot_barcode_scanner/static.py index d81b00b..af76683 100644 --- a/iot_barcode_scanner/static.py +++ b/iot_barcode_scanner/static.py @@ -4,3 +4,17 @@ CONFIG_PATH = "/etc/xengineering.eu/iot_barcode_scanner/config.json" + +KEYMAP = { + "KEY_0": "0", + "KEY_1": "1", + "KEY_2": "2", + "KEY_3": "3", + "KEY_4": "4", + "KEY_5": "5", + "KEY_6": "6", + "KEY_7": "7", + "KEY_8": "8", + "KEY_9": "9", + "KEY_ENTER": "\n", +} -- cgit v1.2.3-70-g09d2