Skip to content

Commit ba2d205

Browse files
update code.py for compatibility with CircuitPython v7.x
1 parent 66dcb89 commit ba2d205

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • PyGamer_Improved_Thermal_Camera

PyGamer_Improved_Thermal_Camera/code.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,15 @@ def move_buttons(joystick=False): # Read position buttons and joystick
493493
print(f" define displayio: {(t1 - t0):6.3f} sec")
494494
print(f" startup free memory: {fm1/1000:6.3} Kb")
495495
print("")
496-
print(f" 1) data acquisition: {(t4 - t2):6.3f} rate: {(1 / (t4 - t2)):5.1f} /sec")
496+
print(
497+
f" 1) data acquisition: {(t4 - t2):6.3f} rate: {(1 / (t4 - t2)):5.1f} /sec"
498+
)
497499
print(f" 2) display stats: {(t5 - t4):6.3f}")
498500
print(f" 3) interpolate: {(t6 - t5):6.3f}")
499501
print(f" 4) display image: {(t7 - t6):6.3f}")
500502
print(f" =======")
501-
print(f"total frame: {(t7 - t2):6.3f} sec rate: {(1 / (t7 - t2)):5.1f} /sec")
503+
print(
504+
f"total frame: {(t7 - t2):6.3f} sec rate: {(1 / (t7 - t2)):5.1f} /sec"
505+
)
502506
print(f" free memory: {fm7/1000:6.3} Kb")
503507
print("")

0 commit comments

Comments
 (0)