Simplified progress display

Added note about corrupt red layer in bw mode
This commit is contained in:
Furrtek
2023-09-03 07:23:14 +02:00
parent 2a8d6a0e81
commit b065ea3a29
9 changed files with 49 additions and 30 deletions

View File

@@ -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.")