diff --git a/adafruit_magtag/peripherals.py b/adafruit_magtag/peripherals.py index bedca2c..b1fffd9 100755 --- a/adafruit_magtag/peripherals.py +++ b/adafruit_magtag/peripherals.py @@ -152,6 +152,7 @@ def light(self): """ Return the value of the light sensor. The neopixel_disable property must be false to get a value. + .. code-block:: python import time @@ -162,5 +163,6 @@ def light(self): while True: print(magtag.peripherals.light) time.sleep(0.01) + """ return self._light.value