Update diagnostics/hub_diagnostics.py

This commit is contained in:
2026-03-24 18:35:46 +00:00
parent a60c92997a
commit 06bce553aa

View File

@@ -2,7 +2,7 @@ from pybricks.tools import wait, StopWatch
from pybricks import version
import other_functions as debug
from micropython_diagnostics import MicroPythonDiagnostics
from pybricks.parameters import Port
from pybricks.parameters import Port, Color
from os_diagnostics import OSDiagnostics
class HubDiagnostics:
def __init__(self, hub):
@@ -25,6 +25,7 @@ class HubDiagnostics:
wait(100)
debug.log(f"[Hub Diagnostics - Light Sources] Turning off pixel at position {x}, {y}...", v)
self.hub.display.pixel(x, y, brightness=0)
self.hub.light.on(Color.RED)
def printAll(self, verbose=True):
v = verbose