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.

Related projects

License

This project is licensed under the MIT license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos_phal_plugin_dotstar-0.0.3a2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_phal_plugin_dotstar-0.0.3a2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file ovos_phal_plugin_dotstar-0.0.3a2.tar.gz.

File metadata

File hashes

Hashes for ovos_phal_plugin_dotstar-0.0.3a2.tar.gz
Algorithm Hash digest
SHA256 7b67f3c19c3feb7644ed8e2d72d05ad8fa3a1d1f7b49cb1b56e5be6d275d818b
MD5 cbfff73962e670a3fa91e85a1c9deb57
BLAKE2b-256 01f4c97e7a2cf8a132edfc9e4d39b8896a554d21989145962a80356b0ad33f6a

See more details on using hashes here.

File details

Details for the file ovos_phal_plugin_dotstar-0.0.3a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_phal_plugin_dotstar-0.0.3a2-py3-none-any.whl
Algorithm Hash digest
SHA256 9889861661ab1ff9aafe7d56bb242210a98711df03f70df6e7eafa5725fe1c5e
MD5 4bb7a067a46616da1a8df45448843731
BLAKE2b-256 7dc32976d35269665bc58ef1133807c5984158fb6824b34399e058c3c78b2884

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.3a2 This release

2 files

0.0.1

1 file

0.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page