format text

This commit is contained in:
cqc
2026-01-04 11:26:43 +01:00
parent e42ded7f19
commit af1c62fc73

View File

@ -125,7 +125,7 @@ def update_display():
d = float('inf') d = float('inf')
b = float('NaN') b = float('NaN')
print(name, ":", d, b) print(name, ":", d, b)
display.text(f"{name}: {d} {b}", 0, 10*(i+1), 1) display.text(f"{name}: {d:.0}m {b:.0f}°", 0, 10*(i+1), 1)
display.show() display.show()