Skip to content

Commit 429a6e4

Browse files
committed
🐰 advice
@coderabbitai, please verify
1 parent c248c04 commit 429a6e4

File tree

6 files changed

+12741
-12752
lines changed

6 files changed

+12741
-12752
lines changed

docs/moonbase/inputoutput.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ For each board the following presets are defined:
1717

1818
* Per pin:
1919
* GPIO = gpio_num;
20-
* Usage: Can be updated, see below
20+
* Usage: See below
21+
* Index: specify first, second, third, ... usage output, e.g. LED D01 to LED D16
2122
* Summary
2223
* Valid (✅)
2324
* Output (💡)
@@ -30,11 +31,11 @@ For each board the following presets are defined:
3031
## Pin usage
3132

3233
* Supported
33-
* LEDs DIO 01 to 20
34+
* LEDs
3435
* Voltage
3536
* Current
3637
* Infrared
37-
* Button On/Off
38+
* Button LightsOn: sets on/off in [Light Control](https://moonmodules.org/MoonLight/moonlight/lightscontrol/)
3839
* Planned soon
3940
* Battery
4041
* Relay brightness
@@ -54,12 +55,14 @@ For each board the following presets are defined:
5455

5556
### QuinLed boards
5657

57-
* esp32-d0 (4MB)
58-
* erase flash first as MoonLight uses a partition scheme with 3MB of flash and no ota.
59-
* Lolin Wifi fix no -> add as board preset
60-
* you might need to reset your router if you first run WLED on the same MCU
61-
* remove fuse then flash
58+
* Choose the esp32-d0 (4MB) board in the [MoonLight Installer](https://moonmodules.org/MoonLight/gettingstarted/installer/)
59+
* On first install, erase flash first as MoonLight uses a partition scheme with 3MB of flash (no ota at the moment).
60+
* You might need to reset your router if you first run WLED on the same MCU and no new IP is assigned.
61+
62+
!!! Tip
63+
Dig Uno: Remove fuse to connect USB cable to flash the board.
6264

6365
### SE16 v1
6466

67+
* Choose the esp32-s3-devkitc-1-n8r8v board in the [MoonLight Installer](https://moonmodules.org/MoonLight/gettingstarted/installer/)
6568
* Set jumper1 the same as you set it on the board: on: Infrared, off: Ethernet

interface/src/lib/components/moonbase/MultiRow.svelte

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,25 @@
115115
return data[property.name]
116116
.map((item: any, index: number) => ({ item, originalIndex: index }))
117117
.filter(({ item }: { item: any }) => {
118-
const matchFound = property.n.slice(0, 3).some((propertyN: any) => {
119-
let valueStr;
118+
const matchFound = property.n
119+
.filter((propertyN: any, index: number) => {
120+
return index < 3 || propertyN.show === true;
121+
})
122+
.some((propertyN: any) => {
123+
let valueStr;
120124
121-
if (
122-
propertyN.values &&
123-
Array.isArray(propertyN.values) &&
124-
isNumber(item[propertyN.name])
125-
) {
126-
valueStr = propertyN.values[item[propertyN.name]];
127-
} else {
128-
valueStr = item[propertyN.name];
129-
}
125+
if (
126+
propertyN.values &&
127+
Array.isArray(propertyN.values) &&
128+
isNumber(item[propertyN.name])
129+
) {
130+
valueStr = propertyN.values[item[propertyN.name]];
131+
} else {
132+
valueStr = item[propertyN.name];
133+
}
130134
131-
return String(valueStr).toLowerCase().includes(query);
132-
});
135+
return String(valueStr).toLowerCase().includes(query);
136+
});
133137
134138
return isNegated ? !matchFound : matchFound;
135139
});

0 commit comments

Comments
 (0)