-
Notifications
You must be signed in to change notification settings - Fork 1
/
enums.go
55 lines (43 loc) · 1.25 KB
/
enums.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package yeelight
// Effect is enum of Effects
type Effect string
// Effects
const (
EffectSudden Effect = "sudden"
EffectSmooth Effect = "smooth"
)
// FlowMode is enum of Flow Mode
type FlowMode int
// Color flow modes
const (
FlowModeColor FlowMode = 1
FlowColorTemperature FlowMode = 2
FlowSleep FlowMode = 7
)
// FlowAction is enum of Flow Action
type FlowAction int
// Color flow action
const (
// FlowActionRecover means smart LED recover to the state before the color flow started.
FlowActionRecover FlowAction = 0
// FlowActionStay means smart LED stay at the state when the flow is stopped.
FlowActionStay FlowAction = 1
// FlowActionTurnOff means turn off the smart LED after the flow is stopped.
FlowActionTurnOff FlowAction = 2
)
// AdjustAction is enum of Adjust Actions
type AdjustAction string
// Adjust Actions options
const (
AdjustActionIncrease AdjustAction = "increase"
AdjustActionDecrease AdjustAction = "decrease"
AdjustActionCircle AdjustAction = "circle"
)
// AdjustProp is enum of Adjust Properties
type AdjustProp string
// Adjust Properties options
const (
AdjustPropBright AdjustProp = "bright"
AdjustPropColorTemperature AdjustProp = "ct"
AdjustPropColor AdjustProp = "color"
)