diff --git a/docs/media/moonlight/drivers/IMUDriverControls.png b/docs/media/moonlight/drivers/IMUDriverControls.png new file mode 100644 index 00000000..cfa2b966 Binary files /dev/null and b/docs/media/moonlight/drivers/IMUDriverControls.png differ diff --git a/docs/media/moonlight/drivers/MPU-6050.jpg b/docs/media/moonlight/drivers/MPU-6050.jpg new file mode 100644 index 00000000..8f50cc7a Binary files /dev/null and b/docs/media/moonlight/drivers/MPU-6050.jpg differ diff --git a/docs/moonbase/inputoutput.md b/docs/moonbase/inputoutput.md index a36e881f..bbe6bdd6 100644 --- a/docs/moonbase/inputoutput.md +++ b/docs/moonbase/inputoutput.md @@ -1,12 +1,12 @@ # IO Module -io11 +io11 Defines hardware specifics per ESP32 device Currently the following boards are defined. Not all are supported yet 🚧 -io11 +io11 For each board the following presets are defined: @@ -39,7 +39,15 @@ For each board the following presets are defined: * Battery * Planned later * I2S for microphone and line in - * I2C + +## I2C peripherals + +io11 + +If pins for SDA and SCL are defined, I2C devices will be scanned and displayed here + +* Address: The address of a peripheral found +* Name and ID: Unknown if the device is not initialized. If a driver (e.g. [IMU driver](../../moonlight/drivers/#driver-nodes)) is added, it will provide name and ID ## Naming convention diff --git a/docs/media/moonbase/inputoutput.png b/docs/moonbase/inputoutput.png similarity index 100% rename from docs/media/moonbase/inputoutput.png rename to docs/moonbase/inputoutput.png diff --git a/docs/moonbase/inputoutputI2C.png b/docs/moonbase/inputoutputI2C.png new file mode 100644 index 00000000..8425bbea Binary files /dev/null and b/docs/moonbase/inputoutputI2C.png differ diff --git a/docs/media/moonbase/inputoutputpresets.png b/docs/moonbase/inputoutputpresets.png similarity index 100% rename from docs/media/moonbase/inputoutputpresets.png rename to docs/moonbase/inputoutputpresets.png diff --git a/docs/moonlight/drivers.md b/docs/moonlight/drivers.md index 3cf88d99..889f1194 100644 --- a/docs/moonlight/drivers.md +++ b/docs/moonlight/drivers.md @@ -34,11 +34,12 @@ Want to add a Driver to MoonLight, see [develop](../../develop/overview/). See a | ---- | ----- | ---- | ---- | | Parallel LED Driver | | Parallel | Drive multiple LED types, all devices including ESP32-P4(-nano) supported
Light preset: See below
DMA buffer: set higher when LEDs flicker
See [below](#parallel-led-driver) | | FastLED Driver | | FastLed | Most used LED driver. Drive most common LEDs (WS2812). | -| Art-Net Out| | Art-Net | Send Art-Net to Drive LEDS and DMX lights over the network. See [below](#art-net-out) | -| Art-Net In | | Art-Net | Receive Art-Net (or DDP) packages e.g. from [Resolume](https://resolume.com/) or Touch Designer. See [below](#art-net-in) | +| Art-Net Out| | | Send Art-Net to Drive LEDS and DMX lights over the network. See [below](#art-net-out) | +| Art-Net In | | | Receive Art-Net (or DDP) packages e.g. from [Resolume](https://resolume.com/) or Touch Designer. See [below](#art-net-in) | | Audio Sync | | No controls | Listens to audio sent over the local network by WLED-AC or WLED-MM and allows audio reactive effects (♪ & ♫) to use audio data (volume and bands (FFT)) | | HUB75 Driver | | | Drive HUB75 panels
Not implemented yet | | IR Driver | | | Receive IR commands and [Lights Control](../../moonlight/lightscontrol/) | +| IMU Driver | | | Receive inertial data from an IMU / I2C peripheral, see [IO](../../moonbase/inputoutput/#i2c-peripherals)
Used in [particles effect](../../moonlight/effects/#moonlight-effects) | ### Light Preset diff --git a/docs/moonlight/effects.md b/docs/moonlight/effects.md index 4a2568de..cfe97bbc 100644 --- a/docs/moonlight/effects.md +++ b/docs/moonlight/effects.md @@ -45,7 +45,7 @@ These effects have first been created in MoonLight: | Lines | ![lines](../../media/moonlight/effects/lines.gif) | Speed | To test a layout, Red = x, Green = y, Blue = z | | Frequency Saws ♫ | ![FreqSaws](https://github.com/user-attachments/assets/9e0f1f22-eba9-470e-850e-bd0e2f7c787f) | | | | Moon Man | MoonMan | No controls | only on devices supporting M5 library, e.g. AtomS3R | -| Particles 🧊 | ![Particles](https://github.com/user-attachments/assets/c2df7f6b-3b5a-4836-8e21-127de3eb3364) | Particles | Supports Gyro 🚧 | +| Particles 🧊 | ![Particles](https://github.com/user-attachments/assets/c2df7f6b-3b5a-4836-8e21-127de3eb3364) | Particles | Supports gyro, see [IMU driver](../../moonlight/drivers/#driver-nodes) | | Rainbow | ![Rainbow](https://github.com/user-attachments/assets/d74832fa-0e77-481c-9823-588042751f87) | Rainbow | | | Random | ![Random](https://github.com/user-attachments/assets/b7874741-7a30-4ad1-9a8b-db0093da1297) | Speed | | | Ripples 🧊 | ![Ripples](https://github.com/user-attachments/assets/ad1d96d9-60fc-4301-8f17-239e45de8d38) | Ripples | | diff --git a/interface/src/lib/components/moonbase/RowRenderer.svelte b/interface/src/lib/components/moonbase/RowRenderer.svelte index 6fd5c171..1f6e83ee 100644 --- a/interface/src/lib/components/moonbase/RowRenderer.svelte +++ b/interface/src/lib/components/moonbase/RowRenderer.svelte @@ -264,3 +264,4 @@ {/snippet} +
\ No newline at end of file diff --git a/interface/src/routes/system/update/GithubFirmwareManager.svelte b/interface/src/routes/system/update/GithubFirmwareManager.svelte index b031c5ba..b05bf25a 100644 --- a/interface/src/routes/system/update/GithubFirmwareManager.svelte +++ b/interface/src/routes/system/update/GithubFirmwareManager.svelte @@ -56,23 +56,23 @@ } } - function confirmGithubUpdate(assets: any) { + function confirmGithubUpdate(release: any) { // 🌙 use release instead of assets let url = ''; // iterate over assets and find the correct one - for (let i = 0; i < assets.length; i++) { + for (let i = 0; i < release.assets.length; i++) { // check if the asset is of type *.bin if ( - assets[i].name.includes('.bin') && - assets[i].name.includes(page.data.features.firmware_built_target) + release.assets[i].name.includes('.bin') && + release.assets[i].name.includes(page.data.features.firmware_built_target) ) { - url = assets[i].browser_download_url; + url = release.assets[i].browser_download_url; } } if (url === '') { modals.open(InfoDialog as unknown as ModalComponent, { title: 'No matching firmware found', message: - 'No matching firmware was found for the current device. Upload the firmware manually or build from sources.', + 'No matching firmware was found in ' + release.name + ' for ' + page.data.features.firmware_built_target, // 🌙 dismiss: { label: 'OK', icon: Check }, onDismiss: () => modals.close() }); @@ -157,7 +157,7 @@