Documentation ¶
Index ¶
Constants ¶
View Source
const ( BlinkOff = 0x00 BlinkFast = 0x46 BlinkMedium = 0x64 BlinkSlow = 0x96 )
Variables ¶
View Source
var Blue = [3]byte{0x00, 0x00, 0xFF}
View Source
var Green = [3]byte{0x00, 0xFF, 0x00}
View Source
var Red = [3]byte{0xFF, 0x00, 0x00}
Functions ¶
This section is empty.
Types ¶
type BlyncLight ¶
type BlyncLight struct {
// contains filtered or unexported fields
}
func NewBlyncLight ¶
func NewBlyncLight() (blync BlyncLight)
func (BlyncLight) Close ¶
func (b BlyncLight) Close(id int)
func (BlyncLight) FlashOrder ¶
func (b BlyncLight) FlashOrder()
func (BlyncLight) Play ¶
func (b BlyncLight) Play(mp3 byte, id int)
16-30 play a tune single time 49-59 plays never ending versions of the tunes
func (BlyncLight) Reset ¶
func (b BlyncLight) Reset(id int)
func (BlyncLight) SetBlinkRate ¶
func (b BlyncLight) SetBlinkRate(rate byte, id int)
func (BlyncLight) SetColor ¶
func (b BlyncLight) SetColor(color [3]byte, id int)
color[0] = r color[1] = g color[2] = b
func (BlyncLight) StopPlay ¶
func (b BlyncLight) StopPlay(id int)
Click to show internal directories.
Click to hide internal directories.