Exemplo n.º 1
0
func init() {
	deviceapi.DefaultRegistry.Register(&deviceapi.Registration{
		Info: deviceapi.Info{
			Name:        "Clock",
			Description: "Set device into clock mode"},
		ConfigFactory: deviceapi.EmptyConfigFactory,
		EffectFactory: deviceapi.WordClockEffectFactory(ClockEffectFactory)})
}
Exemplo n.º 2
0
func init() {
	deviceapi.DefaultRegistry.Register(&deviceapi.Registration{
		Info: deviceapi.Info{
			Name:        "Clock Color",
			Description: "Set the color for your clock after clock effect selected"},
		ConfigFactory: func() deviceapi.Config {
			return &ClockColorConfig{"#ffffff"}
		},
		EffectFactory: deviceapi.WordClockEffectFactory(ClockColorEffectFactory)})
}