Skip to content

Commit b941654

Browse files
committed
Allow clock overlay to use LED beyond 255
1 parent b0b3196 commit b941654

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wled00/data/settings_time.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ <h2>Time setup</h2>
168168
<h3>Clock</h3>
169169
Analog Clock overlay: <input type="checkbox" name="OL" onchange="Cs()"><br>
170170
<div id="cac">
171-
First LED: <input name="O1" type="number" min="0" max="255" required> Last LED: <input name="O2" type="number" min="0" max="255" required><br>
172-
12h LED: <input name="OM" type="number" min="0" max="255" required><br>
171+
First LED: <input name="O1" type="number" min="0" max="1024" required> Last LED: <input name="O2" type="number" min="0" max="1024" required><br>
172+
12h LED: <input name="OM" type="number" min="0" max="1024" required><br>
173173
Show 5min marks: <input type="checkbox" name="O5"><br>
174174
Seconds (as trail): <input type="checkbox" name="OS"><br>
175175
Show clock overlay only if all LEDs are solid black: <input type="checkbox" name="OB"><br>

wled00/wled.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ WLED_GLOBAL byte currentTimezone _INIT(WLED_TIMEZONE); // Timezone ID. Refer
558558
WLED_GLOBAL int utcOffsetSecs _INIT(WLED_UTC_OFFSET); // Seconds to offset from UTC before timzone calculation
559559

560560
WLED_GLOBAL byte overlayCurrent _INIT(0); // 0: no overlay 1: analog clock 2: was single-digit clock 3: was cronixie
561-
WLED_GLOBAL byte overlayMin _INIT(0), overlayMax _INIT(DEFAULT_LED_COUNT - 1); // boundaries of overlay mode
561+
WLED_GLOBAL uint16_t overlayMin _INIT(0), overlayMax _INIT(DEFAULT_LED_COUNT - 1); // boundaries of overlay mode
562562

563563
WLED_GLOBAL byte analogClock12pixel _INIT(0); // The pixel in your strip where "midnight" would be
564564
WLED_GLOBAL bool analogClockSecondsTrail _INIT(false); // Display seconds as trail of LEDs instead of a single pixel

0 commit comments

Comments
 (0)