Sample Profile
Example profile for a bicycle lighting profile on the Amp
1
{
2
"motion": {
3
"autoOrientation": false,
4
"autoMotion": true,
5
"autoTurn": false,
6
"brakeAxis": 5,
7
"brakeThreshold": 0.1,
8
"orientationTrigger": 2
9
},
10
"actions": {
11
"brake-off": [
12
{ "region": "brake", "effect": "1" }
13
],
14
"brake-normal": [
15
{ "region": "brake", "effect": "2,#800000,1" }
16
],
17
"brake-active": [
18
{ "region": "brake", "effect": "3,#800000,#FF0000,100,1" }
19
],
20
"headlight-off": [
21
{ "region": "headlight", "effect": "1" }
22
],
23
"headlight-normal": [
24
{ "region": "headlight", "effect": "2,#7F7F7F,1" }
25
],
26
"headlight-bright": [
27
{ "region": "headlight", "effect": "2,#FFFFFF,1" }
28
],
29
"turn-center": [
30
{ "region": "left", "effect": "0" },
31
{ "region": "right", "effect": "0" }
32
],
33
"turn-left": [
34
{ "region": "left", "effect": "3,#000000,#FFFF00,200,2" },
35
{ "region": "right", "effect": "1" }
36
],
37
"turn-right": [
38
{ "region": "right", "effect": "3,#000000,#FFFF00,200,2" },
39
{ "region": "left", "effect": "1" }
40
],
41
"turn-hazard": [
42
{ "region": "left", "effect": "3,#000000,#FFFF00,200,2" },
43
{ "region": "right", "effect": "3,#000000,#FFFF00,200,2" }
44
]
45
},
46
"lights": {
47
"channels": [
48
{
49
"channel": 1,
50
"leds": 10,
51
"type": 3
52
},
53
{
54
"channel": 2,
55
"leds": 10,
56
"type": 3
57
},
58
{
59
"channel": 3,
60
"leds": 10,
61
"type": 3
62
},
63
{
64
"channel": 4,
65
"leds": 10,
66
"type": 3
67
}
68
],
69
"regions": {
70
"headlight": [
71
{
72
"channel": 1,
73
"start": 1,
74
"end": 10
75
},
76
{
77
"channel": 4,
78
"start": 1,
79
"end": 10
80
}
81
],
82
"left": [
83
{
84
"channel": 1,
85
"start": 1,
86
"end": 10
87
},
88
{
89
"channel": 2,
90
"start": 1,
91
"end": 10
92
}
93
],
94
"right": [
95
{
96
"channel": 3,
97
"start": 1,
98
"end": 10
99
},
100
{
101
"channel": 4,
102
"start": 1,
103
"end": 10
104
}
105
],
106
"brake": [
107
{
108
"channel": 2,
109
"start": 1,
110
"end": 10
111
},
112
{
113
"channel": 3,
114
"start": 1,
115
"end": 10
116
}
117
]
118
}
119
}
120
}
Copied!
Last modified 1yr ago
Copy link