Discover Packages
github.com/KarpelesLab/streamdeck
ledbutton
package
Version:
v0.2.3
Opens a new window with list of versions in this module.
Published: Apr 14, 2023
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
LedColor is a functional option to set the color of the LED.
Text is a functional option for providing the initial text on the LED Button.
Max 5 characters.
TextColor is a functional option which sets the text color.
LEDColor is the type which defines the colors of the LED
type LedButton struct {
}
LedButton simulates a Button with a status LED.
NewLedButton is the constructor for a new Led Button. Functional
arguments can be supplied to modify it's default characteristics
SetState sets the state of the LED and renders the Button.
SetText sets the text (max 5 Chars) on the LedButton. The result will be
rendered immediately.
State returns the state of the LED
Source Files
¶
Click to show internal directories.
Click to hide internal directories.