Skip to content

Commit 75bdd1f

Browse files
committed
Merge branch 'dev'
2 parents f9ce2ae + 51fbeb8 commit 75bdd1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+18332
-17709
lines changed

docs/develop/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ There are 3 levels to add functionality:
8282

8383
* **Standard ESP32-Sveltekit code**, e.g. Connections, Wifi and System. MoonBase files is also made using standard sveltekit as example but contains a few components used in MoonLight modules. Might be rewriteen as MoonLight Module in the future.
8484
* [MoonLight Modules](https://moonmodules.org/MoonLight/moonbase/modules/) e.g. Lights Control, Effects, Info, Channels. They are subclasses of Modules.h/cpp and implement setupDefinition, onUpdate and optional loop. New modules need to be defined in main.cpp and added to menu.svelte. All further UI is generated by Module.svelte.
85-
* **MoonLight Nodes**: the easiest and recommended way. See Effects.h, Layouts.h, Modifiers.h and Drivers.h for examples. They match closest WLED usermods. Each node has controls, a setup and a loop and can be switched on and off. For specific purposes hasLayout and hasModifier can be set.
85+
* **MoonLight Nodes**: the easiest and recommended way. See Effects.h, Layouts.h, Modifiers.h and Drivers.h for examples. They match closest WLED usermods. Each node has controls, a setup and a loop and can be switched on and off. For specific purposes hasLayout() and hasModifier() can return true.
8686

8787
### Adding an ESP32 device Definition
8888

docs/develop/nodes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Nodes are inspired by WLED usermods, further developed in StarBase and now in Mo
1515

1616
MoonLight specific
1717

18-
* Node types: it is recommended that a node is one of the 4 types as described above. However each node could perform functionality of all types. To recognize what a node does the emojis 🚥, 🔥, 💎 and ☸️ are used in the name. The variables hasLayout and hasModifier indicate the specific functionality the node supports. They control when a physical to virtual mapping is recalculated
19-
* **hasLayout**: a layout node specify the amount of position of lights controlled. E.g. a panel of 16x16 or a cube of 20x20x20. If hasLayout is defined you should implement addLayout calling addLight(position) and addPin() for all the lights.
18+
* Node types: it is recommended that a node is one of the 4 types as described above. However each node could perform functionality of all types. To recognize what a node does the emojis 🚥, 🔥, 💎 and ☸️ are used in the name. The function hasLayout() and hasModifier() indicate the specific functionality the node supports. They control when a physical to virtual mapping is recalculated
19+
* **hasLayout()**: a layout node specify the amount of position of lights controlled. E.g. a panel of 16x16 or a cube of 20x20x20. If hasLayout() is true you should implement onLayout calling addLight(position) and addPin() for all the lights.
2020
* addPin() is needed if a LED driver is used to send the output to LED strips.
21-
* **hasModifier**: a modifier node which manipulates virtual size and positions and lights using one or more of the functions modifySize, modifyPosition and modifyXYZ.
21+
* **hasModifier()**: a modifier node which manipulates virtual size and positions and lights using one or more of the functions modifySize, modifyPosition and modifyXYZ.
2222
* if the loop() function contains setXXX functions is used it is an **effect** node. It will contain for-loops iterating over each virtual ! light defined by layout and modifier nodes. The iteration will be on the x-axis for 1D effects, but also on the y- and z-axis for 2D and 3D effects. setRGB is the default function setting the RGB values of the light. If a light has more 'channels' (e.g. Moving heads) they also can be set.
2323
* Moving heads
2424
* **addLight** will show where the moving head will be on the stage. In general only an array of a few lights e.g. 4 moving heads in a row. A moving head effect will then iterate over 4 lights where each light might do something different (e.g. implement a wave of moving head movement)

firmware/esp32-p4.ini

Lines changed: 119 additions & 117 deletions
Large diffs are not rendered by default.

firmware/esp32-s3.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ board_build.psram_type = opi
6969
board_build.extra_flags =
7070
-DBOARD_HAS_PSRAM
7171
-D FT_BATTERY=1 ; battery feature
72-
-D VOLTAGE_PIN=8 ; 🚧
73-
-D CURRENT_PIN=9 ; 🚧
72+
-D VOLTAGE_PIN=8
73+
-D CURRENT_PIN=9
7474
-D LED_PINS=\"47,48,21,38,14,39,13,40,12,41,11,42,10,2,3,1\" ; 🚧
7575
build_flags = ${esp32-s3-base.build_flags}
7676
lib_deps = ${esp32-s3-base.lib_deps}
19.8 KB
Loading

firmware/installer/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ <h2>Installer</h2>
2929
<tr><td>esp32-d0-16MB</td><td><img src="./images/esp32-d0-16MB.jpg" width="100"/></td><td><esp-web-install-button manifest="https://raw.githack.com/MoonModules/MoonLight/refs/heads/main/firmware/installer/manifest_esp32-d0-16MB.json"></esp-web-install-button></td><td><a href="https://www.tindie.com/products/serg74/esp32-wroom-usb-c-d1-mini32-form-factor-board/" target="_blank">Serg74</a></td><td></td></tr>
3030
<tr><td>esp32-d0</td><td><img src="./images/esp32-d0.jpg" width="100"/></td><td><esp-web-install-button manifest="https://raw.githack.com/MoonModules/MoonLight/refs/heads/main/firmware/installer/manifest_esp32-d0.json"></esp-web-install-button></td><td></td><td></td></tr>
3131
<tr><td>esp32-d0-moonbase</td><td><img src="./images/esp32-d0.jpg" width="100"/></td><td><esp-web-install-button manifest="https://raw.githack.com/MoonModules/MoonLight/refs/heads/main/firmware/installer/manifest_esp32-d0-moonbase.json"></esp-web-install-button></td><td></td><td></td></tr>
32-
<tr><td>esp32-c3-supermini</td><td><img src="./images/esp32-c3-supermini.jpg" width="100"/></td><td><esp-web-install-button manifest="https://raw.githack.com/MoonModules/MoonLight/refs/heads/main/firmware/installer/manifest_esp32-c3-supermini.json"></esp-web-install-button></td><td><a href="https://s.click.aliexpress.com/e/_EIl7NKw" target="_blank">Ali*</a></td><td></td></tr>
3332
<tr><td>esp32-p4-nano</td><td><img src="./images/esp32-p4-nano.jpg" width="100"/></td><td><esp-web-install-button manifest="https://raw.githack.com/MoonModules/MoonLight/refs/heads/main/firmware/installer/manifest_esp32-p4-nano.json"></esp-web-install-button></td><td><a href="https://www.waveshare.com/esp32-p4-nano.htm">Waveshare</a></td><td></td></tr>
3433
<tr><td>esp32-p4-olimex 🚧</td><td><img src="./images/esp32-p4-olimex.jpg" width="100"/></td><td><esp-web-install-button manifest="https://raw.githack.com/MoonModules/MoonLight/refs/heads/main/firmware/installer/manifest_esp32-p4-olimex.json"></esp-web-install-button></td><td><a href="https://www.olimex.com/Products/IoT/ESP32-P4/ESP32-P4-DevKit/open-source-hardware" target="_blank">Olimex</a></td><td></td></tr>
34+
<tr><td>esp32-c3-devkitm-1</td><td><img src="./images/esp32-c3-devkitm-1.jpg" width="100"/></td><td><esp-web-install-button manifest="https://raw.githack.com/MoonModules/MoonLight/refs/heads/main/firmware/installer/manifest_esp32-c3-devkitm-1.json"></esp-web-install-button></td><td><a href="https://s.click.aliexpress.com/e/_EIl7NKw" target="_blank">Ali*</a></td><td></td></tr>
35+
<tr><td>esp32-c3-supermini</td><td><img src="./images/esp32-c3-supermini.jpg" width="100"/></td><td><esp-web-install-button manifest="https://raw.githack.com/MoonModules/MoonLight/refs/heads/main/firmware/installer/manifest_esp32-c3-supermini.json"></esp-web-install-button></td><td><a href="https://s.click.aliexpress.com/e/_EIl7NKw" target="_blank">Ali*</a></td><td></td></tr>
3536
<tr><td>others</td><td><img src="./images/others.jpg" width="100"/></td><td><esp-web-install-button manifest="https://raw.githack.com/MoonModules/MoonLight/refs/heads/main/firmware/installer/manifest.json"></esp-web-install-button></td><td></td><td></td></tr>
3637
</tbody>
3738
</table>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "MoonLight on esp32-c3-devkitm-1",
3+
"version": "0.5.9.2",
4+
"home_assistant_domain": "esphome",
5+
"funding_url": "https://esphome.io/guides/supporters.html",
6+
"new_install_prompt_erase": true,
7+
"new_install_immediately": false,
8+
"builds": [
9+
{
10+
"chipFamily": "ESP32-C3",
11+
"name": "esp32-c3-devkitm-1",
12+
"image": "./images/esp32-c3-devkitm-1.jpg",
13+
"parts": [
14+
{ "path": "./MoonLight_esp32-c3-devkitm-1_0-5-9-2_webflash.bin", "offset": 0 }
15+
]
16+
}
17+
]
18+
}

firmware/installer/manifest_esp32-d0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "MoonLight on esp32-d0",
3-
"version": "0.5.9",
3+
"version": "0.5.9.2",
44
"home_assistant_domain": "esphome",
55
"funding_url": "https://esphome.io/guides/supporters.html",
66
"new_install_prompt_erase": true,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
>
300300
{x + y * property.width}
301301
{#if popupCell === x + y * property.width}
302-
<div class="fixed z-50 bg-base-200 p-6 rounded shadow-lg mt-2 min-h-0 text-left inline-block min-w-0"
302+
<div class="fixed z-50 bg-neutral-100 p-6 rounded shadow-lg mt-2 min-h-0 text-left inline-block min-w-0"
303303
style="left: {popupX}px; top: {popupY}px;"
304304
>
305305
<!-- Popup for {cell} -->
File renamed without changes.

0 commit comments

Comments
 (0)