blob: c0ca00e6659cac5a1a446090dd8b79d721bc940a (
plain)
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
56
|
description: >
Interface to control physical LED.
properties:
- name: State
type: enum[self.Action]
default: 'Off'
description: >
Current State of the LED.
- name: DutyOn
type: byte
default: 50
description: >
Percentage time the LED needs to be ON while blinking.
- name: Color
type: enum[self.Palette]
default: Unknown
description: >
Color that the LED can emit.
enumerations:
- name: Action
description: >
Possible states a LED can be in.
values:
- name: 'Off'
description: >
LED is in OFF state
- name: 'On'
description: >
LED is in solid ON state
- name: 'Blink'
description: >
LED is blinking
- name: Palette
description: >
Possible colors that the LED can emit.
values:
- name: Unknown
description: >
Color emitted by LED is unknown.
- name: Red
description: >
LED can emit Red color.
- name: Green
description: >
LED can emit Green color.
- name: Blue
description: >
LED can emit Blue color.
- name: Yellow
description: >
LED can emit Yellow color.
|