Documentation ¶
Overview ¶
Package ledwidget defines a GIU widget that mimics the appearance of the DE2-115 LED groups.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LedWidget ¶
type LedWidget struct { widget.BaseWidget // contains filtered or unexported fields }
LedWidget represents a horizontal strip of up to 32 LEDs, all the same color.
func NewLedWidget ¶
NewLedWidget creates a new LED widget with the given number of LEDs. When an LED is on, it will be displayed with the given onColor, and otherwise as the given offColor.
func (*LedWidget) CreateRenderer ¶
func (l *LedWidget) CreateRenderer() fyne.WidgetRenderer
CreateRenderer implements fyne.Widget
func (*LedWidget) Mask ¶
Mask returns a uint32 with all of the bits corresponding to an LED set to 1.
Click to show internal directories.
Click to hide internal directories.