Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func State ¶ added in v0.1.5
State is a functional option for providing the initial state of the LED Button.
Types ¶
type LedButton ¶
type LedButton struct {
// contains filtered or unexported fields
}
LedButton simulates a Button with a status LED.
func NewLedButton ¶
NewLedButton is the constructor for a new Led Button. Functional arguments can be supplied to modify it's default characteristics
func (*LedButton) SetState ¶
SetState sets the state of the LED. In order to render the changes Draw() has to be called.
func (*LedButton) SetText ¶
SetText sets the text (max 5 Chars) on the LedButton. In order to render the changes Draw() has to be called.
func (*LedButton) SetTextColor ¶ added in v0.2.1
SetTextColor sets the text color of the button. In order to render the changes Draw() has to be called.
Click to show internal directories.
Click to hide internal directories.