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/moonlight/layouts.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ Want to add a a Layout to MoonLight, see [develop](https://moonmodules.org/MoonL
26
26
| Single Line || <imgwidth="320"alt="Single line"src="https://github.com/user-attachments/assets/70455279-646c-467d-b8e5-492b1aeae0fa" /> ||
27
27
| Single Row || <imgwidth="320"alt="Single row"src="https://github.com/user-attachments/assets/9f9918b9-e1ee-43a8-a02d-7f1ee182888b" /> ||
28
28
| SE16 || <imgwidth="320"alt="SE16"src="https://github.com/user-attachments/assets/0efe941a-acf5-4a2c-a7d6-bdfa91574d1a" /> | Layout(s) including pins for Stephan Electronics 16-Pin ESP32-S3 board<br>see below |
29
+
| LightCrafter16 || <imgwidth="320"alt="LightCrafter16"src="https://github.com/user-attachments/assets/0efe941a-acf5-4a2c-a7d6-bdfa91574d1a" /> | Layout(s) for Stephan Electronics LightCrafter16 ESP32-S3 board<br>see below |
29
30
30
31
!!! warning "Choosing pins"
31
32
@@ -36,11 +37,21 @@ Want to add a a Layout to MoonLight, see [develop](https://moonmodules.org/MoonL
36
37
37
38
### SE16
38
39
39
-
16channel LED strip driver by Stephane Electronics
40
+
16-channel LED strip driver by Stephan Electronics
* Leds Per Pin: the number of LEDs connected to each pin
44
45
* Pins Are Columns: are the LEDs on a pin a row of the effect (width is 1 (or 2) x ledsPerPin). If not set the LEDs are a column (height is 1 (or 2) x ledsPerPin)
45
46
* Mirrored Pins: If set it is assumed that LEDs are connected with increasing positions on 8 pins on one side of the board and decreasing positions on the 8 pins of the other side of the board. The resulting size will have a width of 8 and the height (or width) will be 2 * ledsPerPin. If not set, the width will be 16 and the height (or width) = ledsPerPin
* Leds Per Pin: the number of LEDs connected to each pin
55
+
* Pins Are Columns: are the LEDs on a pin a row of the effect (width is 1 (or 2) x ledsPerPin). If not set the LEDs are a column (height is 1 (or 2) x ledsPerPin)
56
+
57
+
X0Y0 position is on the top left when the board is positioned in such a way that the Ethernet connector is on the top left.
for (uint8_t gpio : ledPins) pinAssigner.assignPin(gpio, pin_LED);
316
317
pinAssigner.assignPin(3, pin_High); // WIZ850_nRST, needs to be high to access RS485_DE, VBUS_DET, WIZ580_nINT. Also drives an LED.
317
318
gpio_set_direction((gpio_num_t)3, GPIO_MODE_OUTPUT); // LEAVE here: guarantees the pin is set to high at platform boot so the ethernet module can initialize correctly
318
319
gpio_set_level((gpio_num_t)3, 1); // LEAVE here: guarantees the pin is set to high at platform boot so the ethernet module can initialize correctly
319
-
pinAssigner.assignPin(17, pin_Serial_TX);
320
-
pinAssigner.assignPin(18, pin_Serial_RX);
320
+
pinAssigner.assignPin(17, pin_RS485_TX);
321
+
pinAssigner.assignPin(18, pin_RS485_RX);
321
322
pinAssigner.assignPin(46, pin_RS485_DE);
322
323
pinAssigner.assignPin(0, pin_Dig_Input); // Native USB port vbus detection
323
324
pinAssigner.assignPin(5, pin_Voltage); // Input voltage
@@ -602,7 +603,12 @@ class ModuleIO : public Module {
0 commit comments