func init() {
	deviceapi.DefaultRegistry.Register(&deviceapi.Registration{
		Info: deviceapi.Info{
			Name:        "Whitefade",
			Description: "White fading deviceapi"},
		ConfigFactory: deviceapi.DelayConfigFactory,
		EffectFactory: deviceapi.DimLampEffectFactory(NewWhiteFadeEffect)})
}
Beispiel #2
0
func init() {
	deviceapi.DefaultRegistry.Register(&deviceapi.Registration{
		Info: deviceapi.Info{
			Name:        "Stroboscope",
			Description: "Stroboscope"},
		ConfigFactory: deviceapi.DelayConfigFactory,
		EffectFactory: deviceapi.DimLampEffectFactory(StrobeEffectFactory)})
}
func init() {
	deviceapi.DefaultRegistry.Register(&deviceapi.Registration{
		Info: deviceapi.Info{
			Name:        "Brightness Scaling",
			Description: "Set brightness scaling for your lamp"},
		ConfigFactory: func() deviceapi.Config {
			return &BrightnessConfig{255}
		},
		EffectFactory: deviceapi.DimLampEffectFactory(BrightnessScalingEffectFactory)})
}