diff --git a/rpi/test_ambient.py b/rpi/test_ambient.py index 1e44932..a1e4c8a 100644 --- a/rpi/test_ambient.py +++ b/rpi/test_ambient.py @@ -25,8 +25,11 @@ def intH(channel): while True: sleep(0.25) val = apds.readAmbientLight() + r = apds.readRedLight() + g = apds.readGreenLight() + b = apds.readBlueLight() if val != oval: - print("AmbientLight={}".format(val)) + print("AmbientLight={} (R: {}, G: {}, B: {})".format(val, r, g, b)) oval = val finally: