Update diagnostics/HubDiagnostics.py

This commit is contained in:
2025-12-18 19:22:25 +00:00
parent ae9cbac032
commit c8b72eff51

View File

@@ -1,6 +1,6 @@
from pybricks.tools import wait, StopWatch
from pybricks import version
from OtherFunctions import vprint
import OtherFunctions as debug
import usys
print("Pybricks version information:", version)
@@ -21,8 +21,8 @@ class HubDiagnostics:
self.hub.display.off()
for x in range(5):
for y in range(5):
vprint(f"Turning on pixel at position {x}, {y}...", v)
debug.log(f"Turning on pixel at position {x}, {y}...", v)
display.pixel(x, y, brightness=100)
wait(100)
vprint(f"Turning off pixel at position {x}, {y}...", v)
debug.log(f"Turning off pixel at position {x}, {y}...", v)
display.pixel(x, y, brightness=0)