Control of light-based readings

Hi @DocRuzzy,

These are good questions!

I’m currenlty looking into if its possilbe to initiate a reading without turning on the built in LED (i haven’t figured that out)

In Python, anything is possible! However, since this seems like a feature that we should build in to the original plugin, so I’ve done just that.

You can download the latest spec plugin (version 0.2.9, just released this morning), and this should have configuration for keeping the Pioreactor’s LEDs on during a reading, and turning off the onboard LED:

[spectrometer_reading.config]
...
# led_current_mA recommended to be less than 30. Set to 0 to turn off completely.
led_current_mA=0
# a boolean: 0 or 1. 
turn_off_leds_during_reading=0

To get the latest version, first uninstall the old version:

pio plugins uninstall spectrometer-reading-plugin

and then install again:

pio plugins install spectrometer-reading-plugin