wayland/as7341-spectrometer@0.0.3

License: BSD

Adafruit AS7341 10-Channel Spectral Sensor. Wraps https://github.com/adafruit/Adafruit_AS7341.
NodeDescription
as7341-device
Create an as7341-device.
enable-led
Enable control of attached LED.
detect-flicker
Detect a flickering light.
init
Initialize sensor.
read-all-channels
Read all channels and store measurements in an internal buffer. To retrieve a measurement for a specific channel, use the appropriate get-ch-* node.
set-astep
Set integration time step size.
set-gain
Set the ADC gain multiplier.
set-led-current
Set the current limit for the LED.
set-atime
Set the integration time step count. Total integration time will be (ATIME + 1) × (ASTEP + 1) × 2.78µS
01-example-spectrometer
Spectrometer example. Run in debugger.
02-example-flicker-detection
Flicker detection example. Run in debugger.
get-ch-clear
Get the most recent measurement from the "clear" (unfiltered) channel.
get-ch-nir
Get the most recent measurement from the near infrared (NIR) channel.
get-ch-415nm
Get the most recent measurement from the 415nm channel.
get-ch-445nm
Get the most recent measurement from the 445nm channel.
get-ch-480nm
Get the most recent measurement from the 480nm channel.
get-ch-515nm
Get the most recent measurement from the 515nm channel.
get-ch-555nm
Get the most recent measurement from the 555nm channel.
get-ch-590nm
Get the most recent measurement from the 590nm channel.
get-ch-630nm
Get the most recent measurement from the 630nm channel.
get-ch-680nm
Get the most recent measurement from the 680nm channel.
03-example-led
LED control example.
To use the nodes in your project you should have the wayland/as7341-spectrometer library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.