Update diagnostics/ColorSensorDiagnostics.py
This commit is contained in:
@@ -40,6 +40,7 @@ class ColorSensorDiagnostics:
|
||||
self.colorsensor = None
|
||||
self.colorsensor.detectable_colors(Color.RED, Color.YELLOW, Color.GREEN, Color.BLUE, Color.WHITE, Color.NONE)
|
||||
def printAll(self):
|
||||
self.initializeColorSensor()
|
||||
while True:
|
||||
print("HSV output:", self.colorsensor.hsv)
|
||||
print("Detected color:", self.colorsensor.color())
|
||||
|
||||
Reference in New Issue
Block a user