Linear/Ring LED Interface
Project description
PHAL Linear LED Plugin
Enables interaction with LEDs in a one-dimensional physical arrangement.
Configuration
For Neopixel devices, the plugin requires root
permissions and must be enabled
explicitly in the system configuration in /etc
.
PHAL:
admin:
neon-phal-plugin-linear-led-neopixel:
enabled: true
Note: If any other config is present here (i.e. colors), it will override all configuration in
PHAL.neon-phal-plugin-linear-led
for Neopixel devices. It is recommended to not include config here so that it applies to all linear LED classes.
Colors
By default, the plugin will use theme colors for different events, but these colors may also be overridden in configuration.
PHAL:
neon-phal-plugin-linear-led:
listen_color: white
mute_color: burnt_orange
sleep_color: red
messagebus API
This plugin exposes messagebus listener neon.linear_led.show_animation
to
trigger showing an animation. Any skill, plugin, or other integration can
request an LED ring animation by emitting a Message:
from mycroft_bus_client import Message
Message("neon.linear_led.show_animation",
{'animation': 'chase',
'color': 'green',
'timeout': 10})
Note that the plugin may enforce a limit to how long the animation is displayed and also may replace the animation with a different one that is triggered.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for neon_phal_plugin_linear_led-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | add58adef0c9bfa7f371686148afbe274ff6e8feff44085ea202217eafbf657c |
|
MD5 | 989a47dc9c2ef8cba9bc38a142c55a0e |
|
BLAKE2b-256 | b227d0f4c63bdf5a2224758160b40a181b5210753dbeabd335814a815c5771ad |