first commit

This commit is contained in:
stuce-bot 2025-06-30 20:47:33 +02:00
commit 5893b00dd2
1669 changed files with 1982740 additions and 0 deletions

View file

@ -0,0 +1,205 @@
#include "./led_layout_array.h"
#include "./settings.h"
LedColumns LedCurtinArray() {
static const int kLedRepeatTable[] = {
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22,
22
};
const int* out = kLedRepeatTable;
const int size = sizeof(kLedRepeatTable) / sizeof(*kLedRepeatTable);
return LedColumns(out, size);
}
LedColumns LedLuminescentArray() {
/////////////////////////////////////////////////////////
// Repeat data for the LED piano.
static const int kLedRepeatTable[] = {
25,
25,
26,
26,
27,
27,
28,
27,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
28,
27,
28,
27,
27,
26,
26,
25,
25,
24,
24,
23,
23,
21,
20,
18,
17,
15,
14,
12,
11,
10,
10,
9,
9,
8,
8,
7,
7,
6,
6,
5,
6,
5,
5,
4,
5,
4,
4,
3,
4,
3,
3,
2,
2,
1
};
const int* out = kLedRepeatTable;
const int size = sizeof(kLedRepeatTable) / sizeof(*kLedRepeatTable);
return LedColumns(out, size);
}
LedColumns LedLayoutArray() {
if (kUseLedCurtin) {
return LedCurtinArray();
} else {
return LedLuminescentArray();
}
}