Update diagnostics/HubDiagnostics.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user