From daa556e0e3b5a1263014125b6294d7324bd88247 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Thu, 31 Aug 2017 16:31:04 +0200 Subject: [PATCH] Closedown --- script/local.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/script/local.py b/script/local.py index fc22674..314bdbf 100644 --- a/script/local.py +++ b/script/local.py @@ -32,6 +32,23 @@ def set_led_range(room_temp = True): +################################################################################################### +# Barcode reader +################################################################################################### + +def enable_barcode_reader(): + microscan_cmd.write("") + +def disable_barcode_reader(): + microscan_cmd.write("") + +def read_barcode(timeout): + try: + return microscan.waitString(int(timeout * 1000)) + except: + return None + + ################################################################################################### # Image processing utilities ###################################################################################################