11 lines
316 B
Python
11 lines
316 B
Python
from tw.com.yctools.util.hw.barCodeReader import abfactory
|
|
from tw.com.yctools.util.hw.barCodeReader import CINO_S680
|
|
|
|
if __name__ == "__main__":
|
|
|
|
br = abfactory()
|
|
br.process = CINO_S680
|
|
br.setup_baudrate('COM5', '9600')
|
|
br.turn_on_machine()
|
|
print(br.readData()) ##讀取掃描結果(字串)
|