Skip to content

backend/hardware-controller: Turn the sample illumination LED on by default at startup #211

@ethanjli

Description

@ethanjli

Is your feature request related to a problem? Please describe.
Right now the sample illumination LED blinks once at boot (probably between when the Raspberry Pi boots up and when the systemd service to turn off all pins is started), which can be easy to miss for a user trying to understand the PlanktoScope's behavior based on that behavior.

Describe the solution you'd like
Fabien Lombard has requested that the sample illumination LED should be turned on by default at boot.

Describe alternatives you've considered
Fabien's request to have an LED indicator of what the RPi is doing when it boots up would probably be better served with status indicator LEDs and/or a proper text display on the PlanktoScope hardware. However, older versions of the PlanktoScope hardware need hardware upgrades in order to have such indicators.

Another solution could be to make the Python backend turn on the illumination LED when it starts/restarts. This would be desirable because currently, in the adafruithat version of the software, after restarting the Python backend we have to go into the Node-RED GUI to turn on the LED; which makes management of the backend via API difficult (since there is no API for setting the LED state).

Additional context
Currently, the pscopehat version of the software has the Python hardware controller controlling the illumination LED; while the adafruithat version of the software has the Node-RED dashboard controlling the illumination LED. We will need to make the adafruithat version of the software also have the Python hardware controller controlling the illumination LED, which is what we want to do anyways (so that we can provide an API for controlling that LED, and so that we can converge and eventually unify the two versions of the Python hardware controller into a single codebase and HAL API with different HAL implementations for different HATs).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions