Closedown
This commit is contained in:
@@ -32,6 +32,23 @@ def set_led_range(room_temp = True):
|
||||
|
||||
|
||||
|
||||
###################################################################################################
|
||||
# Barcode reader
|
||||
###################################################################################################
|
||||
|
||||
def enable_barcode_reader():
|
||||
microscan_cmd.write("<H>")
|
||||
|
||||
def disable_barcode_reader():
|
||||
microscan_cmd.write("<I>")
|
||||
|
||||
def read_barcode(timeout):
|
||||
try:
|
||||
return microscan.waitString(int(timeout * 1000))
|
||||
except:
|
||||
return None
|
||||
|
||||
|
||||
###################################################################################################
|
||||
# Image processing utilities
|
||||
###################################################################################################
|
||||
|
||||
Reference in New Issue
Block a user