of course that is helpful
Code:
if data== b'$0104P&':# TEST 2 button touch screen print ("tester 2") scanner_read_write.value(1)# 1 = write and 0 = read MAX 485 # for y in range (5): time.sleep_ms (10) command = b'\x17'# adress byte hex 17 = dec 23 scanner_uart.write(command) time.sleep_ms (10) command = b'\x03'# send your 1e byte to me scanner_uart.write(command) time.sleep_ms (10) command = b'\xFF'# stop byte scanner_uart.write(command) time.sleep_ms (10) scanner_read_write.value(0)# 1 = write and 0 = read if scanner_uart.any():# see or anything is comming from the scanner datas = scanner_uart.read()# print (datas.hex())# tester print([byte for byte in datas])
Statistics: Posted by trixo — Wed Aug 28, 2024 6:21 pm