blob: c0ca00e6659cac5a1a446090dd8b79d721bc940a [file] [log] [blame]
Vishwanatha Subbannaa1e70a72016-11-12 16:00:00 +05301description: >
2 Interface to control physical LED.
3
4properties:
5 - name: State
6 type: enum[self.Action]
Vishwanatha Subbannad9751fa2016-11-29 11:30:54 +05307 default: 'Off'
Vishwanatha Subbannaa1e70a72016-11-12 16:00:00 +05308 description: >
9 Current State of the LED.
10
11 - name: DutyOn
12 type: byte
13 default: 50
14 description: >
15 Percentage time the LED needs to be ON while blinking.
16
17 - name: Color
18 type: enum[self.Palette]
19 default: Unknown
20 description: >
21 Color that the LED can emit.
22
23enumerations:
24 - name: Action
25 description: >
26 Possible states a LED can be in.
27 values:
Vishwanatha Subbannad9751fa2016-11-29 11:30:54 +053028 - name: 'Off'
Vishwanatha Subbannaa1e70a72016-11-12 16:00:00 +053029 description: >
30 LED is in OFF state
Vishwanatha Subbannad9751fa2016-11-29 11:30:54 +053031 - name: 'On'
Vishwanatha Subbannaa1e70a72016-11-12 16:00:00 +053032 description: >
33 LED is in solid ON state
Vishwanatha Subbannad9751fa2016-11-29 11:30:54 +053034 - name: 'Blink'
Vishwanatha Subbannaa1e70a72016-11-12 16:00:00 +053035 description: >
36 LED is blinking
37
38 - name: Palette
39 description: >
40 Possible colors that the LED can emit.
41 values:
42 - name: Unknown
43 description: >
44 Color emitted by LED is unknown.
45 - name: Red
46 description: >
47 LED can emit Red color.
48 - name: Green
49 description: >
50 LED can emit Green color.
51 - name: Blue
52 description: >
53 LED can emit Blue color.
54 - name: Yellow
55 description: >
56 LED can emit Yellow color.