v1.3增加一个简单的越障模式

This commit is contained in:
myperworld committed 2025-11-22 22:52:53 +08:00
1 parent 9d56ba85f1
commit 7a1931cb72
1835 files changed
+475654 -1

No files matched your search

@@ -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();
}
}