-
Notifications
You must be signed in to change notification settings - Fork 3
/
boblight.conf
708 lines (701 loc) · 12.2 KB
/
boblight.conf
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
[global]
interface 127.0.0.1
port 19333
[device]
#name is a unique name for this boblight device
name arduino
#output is the where the Arduino connection can be found
output /dev/ttyUSB0
#output /dev/ttyACM0
#channels is the number of LEDs * number of colours. In my case this is 91 * 3
channels 273
#type is the protocol used to communicate colour data, and should be left as ‘momo’
type momo
#interval is how often updates are sent to the Arduino (in uS). 16600 is ~60 fps
interval 20000
#interval 1
#rate is the number of bits per second to send over the link to the Arduino. This must match the #define serialRate set in the arduino code
#rate 38400
rate 115200
#prefix is a string of bits sent between each frame of data
prefix 55 AA 55 AA 55 AA 55 AA
#allowsync enables real-time updating of the colour data. This means a quicker response time of the LEDs but will also lead to the LEDs
#being out of sync if the data rate to the Arduino isn’t high enough
#allowsync yes
#arduino bootloader runs when opening the serial port for the first time
#delay transmission one second after opening so we don't send shit to the bootloader
delayafteropen 1000000
#debug on
[color]
name red
rgb FF0000
adjust 1.0
blacklevel 0.01
[color]
name green
rgb 00FF00
adjust 1.0
blacklevel 0.01
[color]
name blue
rgb 0000FF
adjust 1.0
#0.85
blacklevel 0.01
[color]
name yellow
rgb FFFF00
adjust 0.5
blacklevel 0.1
gamma 2.3
[color]
name white
rgb FFFFFF
adjust 0.3
blacklevel 0.7
gamma 1.6
# vscan from 0 to 100 top to bottom
# hscan from 0 to 100 left to right
# i.e (0,0) is top left
# 24 lights starting at 0 bottom right to 23 top right
# 100 / 24 = 4.167 so increments of 4.2
[light]
name light00
color red arduino 1
color green arduino 2
color blue arduino 3
vscan 95.8 100.0
hscan 96 100
[light]
name light01
color red arduino 4
color green arduino 5
color blue arduino 6
vscan 91.6 95.8
hscan 96 100
[light]
name light02
color red arduino 7
color green arduino 8
color blue arduino 9
vscan 87.4 91.6
hscan 96 100
[light]
name light03
color red arduino 10
color green arduino 11
color blue arduino 12
vscan 83.2 87.4
hscan 96 100
[light]
name light04
color red arduino 13
color green arduino 14
color blue arduino 15
vscan 79.0 83.2
hscan 96 100
[light]
name light05
color red arduino 16
color green arduino 17
color blue arduino 18
vscan 74.8 79.0
hscan 96 100
[light]
name light06
color red arduino 19
color green arduino 20
color blue arduino 21
vscan 70.6 74.8
hscan 96 100
[light]
name light07
color red arduino 22
color green arduino 23
color blue arduino 24
vscan 66.4 70.6
hscan 96 100
[light]
name light08
color red arduino 25
color green arduino 26
color blue arduino 27
vscan 62.2 66.4
hscan 96 100
[light]
name light09
color red arduino 28
color green arduino 29
color blue arduino 30
vscan 58.0 62.2
hscan 96 100
[light]
name light10
color red arduino 31
color green arduino 32
color blue arduino 33
vscan 53.8 58.0
hscan 96 100
[light]
name light11
color red arduino 34
color green arduino 35
color blue arduino 36
vscan 49.6 53.8
hscan 96 100
[light]
name light12
color red arduino 37
color green arduino 38
color blue arduino 39
vscan 45.4 49.6
hscan 96 100
[light]
name light13
color red arduino 40
color green arduino 41
color blue arduino 42
vscan 41.2 45.4
hscan 96 100
[light]
name light14
color red arduino 43
color green arduino 44
color blue arduino 45
vscan 37.0 41.2
hscan 96 100
[light]
name light15
color red arduino 46
color green arduino 47
color blue arduino 48
vscan 32.8 37.0
hscan 96 100
[light]
name light16
color red arduino 49
color green arduino 50
color blue arduino 51
vscan 28.6 32.8
hscan 96 100
[light]
name light17
color red arduino 52
color green arduino 53
color blue arduino 54
vscan 24.4 28.6
hscan 96 100
[light]
name light18
color red arduino 55
color green arduino 56
color blue arduino 57
vscan 20.2 24.4
hscan 96 100
[light]
name light19
color red arduino 58
color green arduino 59
color blue arduino 60
vscan 16.0 20.2
hscan 96 100
[light]
name light20
color red arduino 61
color green arduino 62
color blue arduino 63
vscan 11.8 16.0
hscan 96 100
[light]
name light21
color red arduino 64
color green arduino 65
color blue arduino 66
vscan 7.6 11.8
hscan 96 100
[light]
name light22
color red arduino 67
color green arduino 68
color blue arduino 69
vscan 3.4 7.6
hscan 96 100
[light]
name light23
color red arduino 70
color green arduino 71
color blue arduino 72
vscan 0 3.4
hscan 96 100
# Now 43 lights along the top from 24 top right to 66 top left
# 100 / 43 = 2.33 so increments of 2.3
[light]
name light24
color red arduino 73
color green arduino 74
color blue arduino 75
hscan 97.7 100.0
vscan 0 4
[light]
name light25
color red arduino 76
color green arduino 77
color blue arduino 78
hscan 95.4 97.7
vscan 0 4
[light]
name light26
color red arduino 79
color green arduino 80
color blue arduino 81
hscan 93.1 95.4
vscan 0 4
[light]
name light27
color red arduino 82
color green arduino 83
color blue arduino 84
hscan 90.8 93.1
vscan 0 4
[light]
name light28
color red arduino 85
color green arduino 86
color blue arduino 87
hscan 88.5 90.8
vscan 0 4
[light]
name light29
color red arduino 88
color green arduino 89
color blue arduino 90
hscan 86.2 88.5
vscan 0 4
[light]
name light30
color red arduino 91
color green arduino 92
color blue arduino 93
hscan 83.9 86.2
vscan 0 4
[light]
name light31
color red arduino 94
color green arduino 95
color blue arduino 96
hscan 81.6 83.9
vscan 0 4
[light]
name light32
color red arduino 97
color green arduino 98
color blue arduino 99
hscan 79.3 81.6
vscan 0 4
[light]
name light33
color red arduino 100
color green arduino 101
color blue arduino 102
hscan 77 79.3
vscan 0 4
[light]
name light34
color red arduino 103
color green arduino 104
color blue arduino 105
hscan 74.7 77
vscan 0 4
[light]
name light35
color red arduino 106
color green arduino 107
color blue arduino 108
hscan 72.4 74.7
vscan 0 4
[light]
name light36
color red arduino 109
color green arduino 110
color blue arduino 111
hscan 70.1 72.4
vscan 0 4
[light]
name light37
color red arduino 112
color green arduino 113
color blue arduino 114
hscan 67.8 70.1
vscan 0 4
[light]
name light38
color red arduino 115
color green arduino 116
color blue arduino 117
hscan 65.5 67.8
vscan 0 4
[light]
name light39
color red arduino 118
color green arduino 119
color blue arduino 120
hscan 63.2 65.5
vscan 0 4
[light]
name light40
color red arduino 121
color green arduino 122
color blue arduino 123
hscan 60.9 63.2
vscan 0 4
[light]
name light41
color red arduino 124
color green arduino 125
color blue arduino 126
hscan 58.6 60.9
vscan 0 4
[light]
name light42
color red arduino 127
color green arduino 128
color blue arduino 129
hscan 56.3 58.6
vscan 0 4
[light]
name light43
color red arduino 130
color green arduino 131
color blue arduino 132
hscan 54 56.3
vscan 0 4
[light]
name light44
color red arduino 133
color green arduino 134
color blue arduino 135
hscan 51.7 54
vscan 0 4
[light]
name light45
color red arduino 136
color green arduino 137
color blue arduino 138
hscan 49.4 51.7
vscan 0 4
[light]
name light46
color red arduino 139
color green arduino 140
color blue arduino 141
hscan 47.1 49.4
vscan 0 4
[light]
name light47
color red arduino 142
color green arduino 143
color blue arduino 144
hscan 44.8 47.1
vscan 0 4
[light]
name light48
color red arduino 145
color green arduino 146
color blue arduino 147
hscan 42.5 44.8
vscan 0 4
[light]
name light49
color red arduino 148
color green arduino 149
color blue arduino 150
hscan 40.2 42.5
vscan 0 4
[light]
name light50
color red arduino 151
color green arduino 152
color blue arduino 153
hscan 37.9 40.2
vscan 0 4
[light]
name light51
color red arduino 154
color green arduino 155
color blue arduino 156
hscan 35.6 37.9
vscan 0 4
[light]
name light52
color red arduino 157
color green arduino 158
color blue arduino 159
hscan 33.3 35.6
vscan 0 4
[light]
name light53
color red arduino 160
color green arduino 161
color blue arduino 162
hscan 31 33.3
vscan 0 4
[light]
name light54
color red arduino 163
color green arduino 164
color blue arduino 165
hscan 28.7 31
vscan 0 4
[light]
name light55
color red arduino 166
color green arduino 167
color blue arduino 168
hscan 26.4 28.7
vscan 0 4
[light]
name light56
color red arduino 169
color green arduino 170
color blue arduino 171
hscan 24.1 26.4
vscan 0 4
[light]
name light57
color red arduino 172
color green arduino 173
color blue arduino 174
hscan 21.8 24.1
vscan 0 4
[light]
name light58
color red arduino 175
color green arduino 176
color blue arduino 177
hscan 19.5 21.8
vscan 0 4
[light]
name light59
color red arduino 178
color green arduino 179
color blue arduino 180
hscan 17.2 19.5
vscan 0 4
[light]
name light60
color red arduino 181
color green arduino 182
color blue arduino 183
hscan 14.9 17.2
vscan 0 4
[light]
name light61
color red arduino 184
color green arduino 185
color blue arduino 186
hscan 12.6 14.9
vscan 0 4
[light]
name light62
color red arduino 187
color green arduino 188
color blue arduino 189
hscan 10.3 12.6
vscan 0 4
[light]
name light63
color red arduino 190
color green arduino 191
color blue arduino 192
hscan 8 10.3
vscan 0 4
[light]
name light64
color red arduino 193
color green arduino 194
color blue arduino 195
hscan 5.7 8
vscan 0 4
[light]
name light65
color red arduino 196
color green arduino 197
color blue arduino 198
hscan 3.4 5.7
vscan 0 4
[light]
name light66
color red arduino 199
color green arduino 200
color blue arduino 201
hscan 0 3.4
vscan 0 4
# Now 24 lights along the left 67 top left to 90 bottom left
[light]
name light67
color red arduino 202
color green arduino 203
color blue arduino 204
vscan 0 3.4
hscan 0 4
[light]
name light68
color red arduino 205
color green arduino 206
color blue arduino 207
vscan 3.4 7.6
hscan 0 4
[light]
name light69
color red arduino 208
color green arduino 209
color blue arduino 210
vscan 7.6 11.8
hscan 0 4
[light]
name light70
color red arduino 211
color green arduino 212
color blue arduino 213
vscan 11.8 16
hscan 0 4
[light]
name light71
color red arduino 214
color green arduino 215
color blue arduino 216
vscan 16 20.2
hscan 0 4
[light]
name light72
color red arduino 217
color green arduino 218
color blue arduino 219
vscan 20.2 24.4
hscan 0 4
[light]
name light73
color red arduino 220
color green arduino 221
color blue arduino 222
vscan 24.4 28.6
hscan 0 4
[light]
name light74
color red arduino 223
color green arduino 224
color blue arduino 225
vscan 28.6 32.8
hscan 0 4
[light]
name light75
color red arduino 226
color green arduino 227
color blue arduino 228
vscan 32.8 37
hscan 0 4
[light]
name light76
color red arduino 229
color green arduino 230
color blue arduino 231
vscan 37 41.2
hscan 0 4
[light]
name light77
color red arduino 232
color green arduino 233
color blue arduino 234
vscan 41.2 45.4
hscan 0 4
[light]
name light78
color red arduino 235
color green arduino 236
color blue arduino 237
vscan 45.4 49.6
hscan 0 4
[light]
name light79
color red arduino 238
color green arduino 239
color blue arduino 240
vscan 49.6 53.8
hscan 0 4
[light]
name light80
color red arduino 241
color green arduino 242
color blue arduino 243
vscan 53.8 58
hscan 0 4
[light]
name light81
color red arduino 244
color green arduino 245
color blue arduino 246
vscan 58 62.2
hscan 0 4
[light]
name light82
color red arduino 247
color green arduino 248
color blue arduino 249
vscan 62.2 66.4
hscan 0 4
[light]
name light83
color red arduino 250
color green arduino 251
color blue arduino 252
vscan 66.4 70.6
hscan 0 4
[light]
name light84
color red arduino 253
color green arduino 254
color blue arduino 255
vscan 70.6 74.8
hscan 0 4
[light]
name light85
color red arduino 256
color green arduino 257
color blue arduino 258
vscan 74.8 79
hscan 0 4
[light]
name light86
color red arduino 259
color green arduino 260
color blue arduino 261
vscan 79 83.2
hscan 0 4
[light]
name light87
color red arduino 262
color green arduino 263
color blue arduino 264
vscan 83.2 87.4
hscan 0 4
[light]
name light88
color red arduino 265
color green arduino 266
color blue arduino 267
vscan 87.4 91.6
hscan 0 4
[light]
name light89
color red arduino 268
color green arduino 269
color blue arduino 270
vscan 91.6 95.8
hscan 0 4
[light]
name light90
color red arduino 271
color green arduino 272
color blue arduino 273
vscan 95.8 100
hscan 0 4