mirror of
https://github.com/furrtek/PrecIR.git
synced 2026-03-30 18:35:43 +00:00
Simplified progress display
Added note about corrupt red layer in bw mode
This commit is contained in:
@@ -15,6 +15,7 @@ if (blaster_info[0] == "0"):
|
||||
ser = serial.Serial(blaster_info[0], 57600, timeout = 5) # 5s timeout for read
|
||||
ser.reset_input_buffer()
|
||||
|
||||
# Flags Repeats Delay Size Data
|
||||
frameA = [0x00, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0B, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0xAB, 0x09, 0x00, 0x00, 0xF2, 0xA7] # Segment change page
|
||||
frameB = [0x00, 0x00, 0x20, 0x00, 0x10, 0x00, 0x0D, 0x00, 0x85, 0x00, 0x00, 0x00, 0x00, 0x06, 0xF1, 0x00, 0x00, 0x00, 0x0A, 0x5D, 0x14] # DM show debug infos
|
||||
|
||||
@@ -44,6 +45,15 @@ for p in range(0, 8):
|
||||
|
||||
print(ser.read())
|
||||
|
||||
ba = bytearray()
|
||||
ba.append(82) # R:Read flash
|
||||
ser.write(ba)
|
||||
ser.flush()
|
||||
i = 0
|
||||
while ser.inWaiting():
|
||||
print(str(i) + " " + str(ser.read()))
|
||||
i += 1
|
||||
|
||||
ser.close()
|
||||
|
||||
print("Done. Read flash to verify now.")
|
||||
|
||||
Reference in New Issue
Block a user