Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Colors = map[string][]int{
"black": {0, 0, 0},
"red": {1, 0, 0},
"green": {0, 1, 0},
"blue": {0, 0, 1},
"cyan": {0, 1, 1},
"magenta": {1, 0, 1},
"yellow": {1, 1, 0},
"white": {1, 1, 1},
}
View Source
var LedNames = []string{
"power",
"wired_internet",
"wireless",
"pairing",
"radio",
}
View Source
var LedPositions = [][]int{
{15, 13, 14},
{12, 10, 11},
{9, 1, 8},
{2, 4, 3},
{5, 7, 6},
}
Functions ¶
func LedNameIndex ¶
func ValidBrightness ¶
func ValidColor ¶
func ValidLedName ¶
Types ¶
type LedArray ¶
type LedArray struct {
Leds []int
LedStates []LedState
BlinkOnState bool
// contains filtered or unexported fields
}
holds the state for an array of leds on our board.
func CreateLedArray ¶
func CreateLedArray() *LedArray
func (*LedArray) SetPwmBrightness ¶
Click to show internal directories.
Click to hide internal directories.