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