We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a07d7 commit 9a14a71Copy full SHA for 9a14a71
adafruit_as7341.py
@@ -375,8 +375,18 @@ def channel_680nm(self):
375
"""The current reading for the 680nm band"""
376
self._configure_f5_f8()
377
return self._channel_3_data
378
+
379
+ @property
380
+ def channel_clear(self):
381
+ """The current reading for the clear sensor"""
382
+ self._configure_f5_f8()
383
+ return self._channel_4_data
384
- # TODO: Add clear and NIR accessors
385
386
387
+ """The current reading for the NIR (near-IR) sensor"""
388
389
+ return self._channel_5_data
390
391
def _wait_for_data(self, timeout=1.0):
392
"""Wait for sensor data to be ready"""
0 commit comments