You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/moonbase/inputoutput.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -326,6 +326,7 @@ The **I2C frequency** can be adjusted (default 100 kHz). Higher frequencies (400
326
326
* Choose the esp32-s3-n8r8v board in the [MoonLight Installer](../../gettingstarted/installer/)
327
327
* Set Switch1 the same as you set the jumper on the board: off / default: Infrared. on: Ethernet.
328
328
* Only 5 boards were ever produced. If you are one of the lucky few, feel free to reach out to limpkin on [Discord](https://discord.gg/TC8NSUSCdV)
329
+
* Use the [L_SE16.sc](https://github.com/MoonModules/MoonLight/blob/main/livescripts/Layouts/L_SE16.sc) Live Script layout for this board. Controls: `mirroredPins` (wiring mode), `pinsAreColumns` (axis orientation), `ledsPerPin` (LEDs per output).
329
330
330
331
331
332
#### LightCrafter16
@@ -334,3 +335,4 @@ The **I2C frequency** can be adjusted (default 100 kHz). Higher frequencies (400
334
335
335
336
* Choose the esp32-s3-n8r8v board in the [MoonLight Installer](../../gettingstarted/installer/)
336
337
* Documentation to be soon published on [limpkin's website](https://www.limpkin.fr)
338
+
* Use the [L_LC16.sc](https://github.com/MoonModules/MoonLight/blob/main/livescripts/Layouts/L_LC16.sc) Live Script layout for this board. Controls: `pinsAreColumns` (axis orientation), `ledsPerPin` (LEDs per output).
See [example scripts on GitHub](https://github.com/MoonModules/MoonLight/tree/main/misc/livescripts) — `E_*.sc` for effects, `L_*.sc` for layouts, `P_*.sc` for palettes.
39
+
See example scripts on GitHub: [Effects](https://github.com/MoonModules/MoonLight/tree/main/livescripts/Effects), [Layouts](https://github.com/MoonModules/MoonLight/tree/main/livescripts/Layouts), [Palettes](https://github.com/MoonModules/MoonLight/tree/main/livescripts/Palettes).
40
40
41
41
**Step 3**: Select the script in the appropriate module:
42
42
@@ -74,9 +74,11 @@ A script can combine these — for example, an effect with both `setup()` (to cr
|`void drawLine(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, CRGB color)`| Draw a 2D line between two points |
129
+
|`void drawCircle(int cx, int cy, uint8_t radius, CRGB color)`| Draw a 2D circle outline |
120
130
121
131
### Layout functions (for `L_` scripts)
122
132
@@ -153,6 +163,9 @@ A script can combine these — for example, an effect with both `setup()` (to cr
153
163
|`gravityX`|`int`| IMU gravity vector X component |
154
164
|`gravityY`|`int`| IMU gravity vector Y component |
155
165
|`gravityZ`|`int`| IMU gravity vector Z component |
166
+
|`hour`|`uint8_t`| Current hour (0–23), requires NTP |
167
+
|`minute`|`uint8_t`| Current minute (0–59), requires NTP |
168
+
|`second`|`uint8_t`| Current second (0–59), requires NTP |
156
169
157
170
---
158
171
@@ -265,4 +278,4 @@ void loop() {
265
278
266
279
---
267
280
268
-
More example scripts are available on [GitHub](https://github.com/MoonModules/MoonLight/tree/main/misc/livescripts). To request new functions, send a [ping on Discord](https://discord.com/channels/700041398778331156/1369578126450884608).
281
+
More example scripts are available on GitHub: [Effects](https://github.com/MoonModules/MoonLight/tree/main/livescripts/Effects), [Layouts](https://github.com/MoonModules/MoonLight/tree/main/livescripts/Layouts), [Palettes](https://github.com/MoonModules/MoonLight/tree/main/livescripts/Palettes). To request new functions, send a [ping on Discord](https://discord.com/channels/700041398778331156/1369578126450884608).
0 commit comments