Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-PHAL-plugin-dotstar

This is an OVOS PHAL plugin. It controls DotStar type LEDs on compatible hardware.

Compatible hardware

  • ReSpeaker 2/4/6/8 i2c microphone HATs
  • Adafruit 2-mic VoiceBonnet

Install

pip install ovos-PHAL-plugin-dotstar

Usage

You can enable this plugin in three ways.

Enable manually

Add this to your ~/.config/mycroft/mycroft.conf.

{
    "PHAL": {
        "ovos-PHAL-plugin-dotstar": {
            "enabled": true
        }
    }
}

With this configuration, the plugin makes no other checks. It assumes you have a compatible HAT installed.

Enable automatically with ovos-i2csound

When ovos-i2csound is installed and running, it creates a file at /etc/OpenVoiceOS/i2c_platform with the name of the HAT it detected. This plugin reads that file. If it lists a compatible HAT, the plugin activates.

Enable automatically with hardware detection

If the two options above do not work, the plugin tries to detect a compatible HAT with i2c-detect. If it finds a compatible device address, the plugin activates.

Once enabled, the LEDs on a ReSpeaker i2c microphone HAT show prompts for what your OVOS assistant is doing.

Adafruit 2-mic VoiceBonnet

You can use the Adafruit VoiceBonnet with this plugin, but it needs one extra configuration step. The detection options above enable the plugin correctly, but this HAT uses different GPIO pins for its LEDs. The plugin cannot tell it apart from a ReSpeaker 2-mic HAT by detection alone.

Add this to your ~/.config/mycroft/mycroft.conf file.

{
    "PHAL": {
        "ovos-PHAL-plugin-dotstar": {
            "dotstar_hat": "ADAFRUIT2MIC"
        }
    }
}

Restart OVOS. The LEDs on your Adafruit VoiceBonnet now show the same prompts as the ReSpeaker devices.

Custom configuration

You can configure colors and animations in ~/.config/mycroft/mycroft.conf.

{
    "PHAL": {
        "ovos-PHAL-plugin-dotstar": {
            "main_color": "Mycroft blue",
            "background_color": "OVOS red",
            "listen_animation": "breath",
            "talking_animation": "blink"
        }
    }
}

main_color -> str:

    rgb value -> "32, 195, 63"
    name -> "blue"
    hex value -> "#22A7F0"

background_color -> str:

    rgb value -> "32, 195, 63"
    name -> "red"
    hex value -> "#FF1A1A"

listen_animation -> str, one of:

    'breathe'
    'chase'
    'fill'
    'refill'
    'bounce'
    'blink'
    'alternating'

talking_animation -> str, one of:

    'breathe'
    'chase'
    'fill'
    'refill'
    'bounce'
    'blink'
    'alternating'

Conflicts with

Two other plugins control the same LEDs. Uninstall them with pip, or blacklist them in your mycroft.conf file, before you use this plugin.

License

This project is licensed under the MIT license.

Metadata

Release files for ovos-PHAL-plugin-dotstar 0.0.5a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-PHAL-plugin-dotstar 0.0.5a2
File Size Uploaded
ovos_phal_plugin_dotstar-0.0.5a2.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-PHAL-plugin-dotstar 0.0.5a2
File Interpreter ABI Platform
ovos_phal_plugin_dotstar-0.0.5a2-py3-none-any.whl Python 3 none any Details

Total release size: 23.1 kB

Release files / ovos_phal_plugin_dotstar-0.0.5a2.tar.gz

Download URL ovos_phal_plugin_dotstar-0.0.5a2.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ff4fb5982ebfd4d3d724ecf5c11aa66a43e3d806de13c74642d0a37b294366b9
BLAKE2b-256 checksum
How to use checksums
0975568d14b7f8e48cfc481bf73fbee953447b9ee89cef63bb9e1065ce3c1998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ovos_phal_plugin_dotstar-0.0.5a2-py3-none-any.whl

Download URL ovos_phal_plugin_dotstar-0.0.5a2-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d430c889a8d9c5f62b4a077d9ad6f3dd594e6877523da480323a84ef2e9ff2fd
BLAKE2b-256 checksum
How to use checksums
9c63e4c4057fadca40b707ab9af9ea676948deaf563a5dcd05b874a2c464a669
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page