Skip to content

Commit 107eac5

Browse files
committed
Fix wing preset wire numbering to be consecutive
Changed wing preset to number consecutively 0-19: - First row (left wing): Wire 0 at left tip, wire 9 at right Displays as: 9 8 7 6 5 4 3 2 1 0 (right to left) - Second row (right wing): Wire 10 at left, wire 19 at right tip Displays as: 10 11 12 13 14 15 16 17 18 19 (left to right) This makes wiring straightforward - start at the left wing tip with wire 0, work across to wire 9, then continue with wire 10 on the right wing and finish at the right tip with wire 19.
1 parent 65ea72a commit 107eac5

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

tabs/led_strip_presets.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,22 @@ const LED_STRIP_PRESETS = {
6363
{ x: 2, y: 8, directions: 'w', functions: 'cwi', color: 2 },
6464
],
6565
wing: [
66-
// Left wing (first row at y=7) - 10 LEDs, ALL RED, facing west, center to tip
67-
{ x: 7, y: 7, directions: 'w', functions: 'c', color: 2 },
68-
{ x: 6, y: 7, directions: 'w', functions: 'c', color: 2 },
69-
{ x: 5, y: 7, directions: 'w', functions: 'c', color: 2 },
70-
{ x: 4, y: 7, directions: 'w', functions: 'c', color: 2 },
71-
{ x: 3, y: 7, directions: 'w', functions: 'c', color: 2 },
72-
{ x: 2, y: 7, directions: 'w', functions: 'c', color: 2 },
73-
{ x: 1, y: 7, directions: 'w', functions: 'c', color: 2 },
66+
// Left wing (first row at y=7) - 10 LEDs, ALL RED, facing west
67+
// Wires 0-9: Wire 0 at left tip (x=0), wire 9 at right side (x=9)
7468
{ x: 0, y: 7, directions: 'w', functions: 'cwi', color: 2 },
69+
{ x: 1, y: 7, directions: 'w', functions: 'c', color: 2 },
70+
{ x: 2, y: 7, directions: 'w', functions: 'c', color: 2 },
71+
{ x: 3, y: 7, directions: 'w', functions: 'c', color: 2 },
72+
{ x: 4, y: 7, directions: 'w', functions: 'c', color: 2 },
73+
{ x: 5, y: 7, directions: 'w', functions: 'c', color: 2 },
74+
{ x: 6, y: 7, directions: 'w', functions: 'c', color: 2 },
75+
{ x: 7, y: 7, directions: 'w', functions: 'c', color: 2 },
7576
{ x: 8, y: 7, directions: 'w', functions: 'c', color: 2 },
7677
{ x: 9, y: 7, directions: 'w', functions: 'cw', color: 2 },
77-
// Right wing (second row at y=9) - 10 LEDs, ALL GREEN, facing east, center to tip
78+
// Right wing (second row at y=9) - 10 LEDs, ALL GREEN, facing east
79+
// Wires 10-19: Wire 10 at left side (x=6), wire 19 at right tip (x=15)
80+
{ x: 6, y: 9, directions: 'e', functions: 'cwi', color: 6 },
81+
{ x: 7, y: 9, directions: 'e', functions: 'c', color: 6 },
7882
{ x: 8, y: 9, directions: 'e', functions: 'c', color: 6 },
7983
{ x: 9, y: 9, directions: 'e', functions: 'c', color: 6 },
8084
{ x: 10, y: 9, directions: 'e', functions: 'c', color: 6 },
@@ -83,8 +87,6 @@ const LED_STRIP_PRESETS = {
8387
{ x: 13, y: 9, directions: 'e', functions: 'c', color: 6 },
8488
{ x: 14, y: 9, directions: 'e', functions: 'c', color: 6 },
8589
{ x: 15, y: 9, directions: 'e', functions: 'cw', color: 6 },
86-
{ x: 7, y: 9, directions: 'e', functions: 'c', color: 6 },
87-
{ x: 6, y: 9, directions: 'e', functions: 'cwi', color: 6 },
8890
],
8991
};
9092

0 commit comments

Comments
 (0)