Update diagnostics/hub_diagnostics.py
This commit is contained in:
@@ -2,7 +2,7 @@ from pybricks.tools import wait, StopWatch
|
|||||||
from pybricks import version
|
from pybricks import version
|
||||||
import other_functions as debug
|
import other_functions as debug
|
||||||
from micropython_diagnostics import MicroPythonDiagnostics
|
from micropython_diagnostics import MicroPythonDiagnostics
|
||||||
from pybricks.parameters import Port
|
from pybricks.parameters import Port, Color
|
||||||
from os_diagnostics import OSDiagnostics
|
from os_diagnostics import OSDiagnostics
|
||||||
class HubDiagnostics:
|
class HubDiagnostics:
|
||||||
def __init__(self, hub):
|
def __init__(self, hub):
|
||||||
@@ -25,6 +25,7 @@ class HubDiagnostics:
|
|||||||
wait(100)
|
wait(100)
|
||||||
debug.log(f"[Hub Diagnostics - Light Sources] Turning off pixel at position {x}, {y}...", v)
|
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.display.pixel(x, y, brightness=0)
|
||||||
|
self.hub.light.on(Color.RED)
|
||||||
|
|
||||||
def printAll(self, verbose=True):
|
def printAll(self, verbose=True):
|
||||||
v = verbose
|
v = verbose
|
||||||
|
|||||||
Reference in New Issue
Block a user