VST Lighting Logo

How to Program LED Light Strips: A WLED Preset and Schedule Example

Build the required scene, save the state and segment bounds that must return, then assign the preset to a normal event or clock time. The documented example uses an existing compatible WLED setup and separates schedules from startup behavior.

Separate illuminated niches and a counter edge provide distinct display-lighting areas.

Programming an installed LED strip can mean building a useful scene, saving it and deciding how it returns. On a supported controller, those tasks may be available through normal controls without writing firmware. The example here follows WLED’s documented segment, preset and schedule functions on an already working compatible system.

What does programming mean for your installed strip?

Saved controls, software presets and custom firmware

A remote with built-in scenes, a controller with a web interface and a custom firmware project offer different kinds of programming. Start with the controls your installed system actually supports. A generic button sequence cannot describe all three.

For this task, the aim is to define visible areas, save a scene and call it back at the intended event. Hardware development and electrical setup are separate work. VST’s smart strip selection page explains why the source functions and complete controller arrangement belong together.

The supported setup used by the example

The WLED web-UI guide identifies its illustrations as version 16.0.1. It shows Colors, Effects, Segments and Presets, with a responsive layout for phones and wider screens. Older versions can present controls differently.

The following example assumes the correct source type and a supported 60-pixel system are already established. It uses ordinary scene controls, leaving the existing hardware, wiring and electrical settings unchanged.

Map the visible areas to controllable segments

Configured pixels and visible regions

A segment is a software region within the configured output. Its range must correspond to the part of the physical installation you intend to control. The number of LED packages in a photograph cannot establish that mapping; the documented source and controller define the controllable units.

Decide which visible areas need their own behavior. Two adjoining display regions may use different static colors. Another project may want the entire line to change together. The scene brief should state that distinction before adding segments.

A 60-pixel display brief

Assume 60 configured controllable pixels run in a known order across two display areas. The first area uses 20; the second uses 40. We want red in the first area and blue in the second. These are example inputs, not the physical LED count or a tested VST configuration.

VST’s addressable source range is relevant when that controllable grouping is being specified. Once it is documented for the installed system, software ranges can be mapped to the visible areas.

Two neighboring display areas receive different static color accents from supported light lines.
Name the visible areas that the controller needs to operate separately

Define segment boundaries for the example

Start is inclusive and Stop is exclusive

WLED’s segment documentation states that the Stop LED is excluded from the segment. Count each region as Stop minus Start. That convention gives a precise boundary for the example.

SegmentStartStop, excludedConfigured pixel count
Left display02020 โˆ’ 0 = 20; indices 0โ€“19
Right display206060 โˆ’ 20 = 40; indices 20โ€“59

Continuous ranges in the example

The two regions cover 60 configured pixels without an overlap or gap. Enter the applicable Start and Stop fields in Segments, then use the segment save control described for your version.

Grouping and Spacing are other software choices with their own effects on the pattern. Keep them at the known intended settings while establishing this simple two-region scene. Advanced layering and overlapping effects are outside this example.

Name each visible region

Names such as Left display and Right display help an operator connect software ranges with the actual installation. Keep the range alongside the name. A renamed physical area can otherwise look correct in the interface while retaining an old boundary.

The range convention is useful for checking that map. The first region ends with index 19 and the next begins at 20, so the adjacent values are intentional. Entering 19 as the first Stop would describe another range under this convention. Use the field meaning before trying to correct an apparent one-pixel boundary problem by changing unrelated settings.

Apply colors and effects to the intended selection

One selected region

WLED applies a color or effect change to the selected segments. Select only the first example region, choose a solid effect and set red. Then select only the second and set blue. The selection state is part of the action.

If both regions change when you intended to change one, inspect which segments remain selected before treating the result as a hardware problem. The interface displays the color and effect of the first selected segment, which can also influence what the operator thinks they are editing.

Several selected regions

Selecting both regions is useful when a common change is intended. For example, a later scene can make both blue. Keep the individual region definitions while applying that shared state.

A selection can be temporary even though the segment boundaries stay saved. An operator may select the left region to edit it, select the right to edit that one, and finally select both for a common adjustment. That workflow preserves two named regions. The shared color change describes the current selection, rather than establishing that the source now has only one controllable area.

Effects can use their own color slots, palette and controls. A solid-color example avoids those extra variables while the boundary and selection behavior are being learned. Develop more elaborate effects only after their documented functions are clear.

An instructional diagram contrasts a change to one selected region with a change applied to both selected regions.
The selected segment set determines which regions receive a normal color change

Save a preset with the state that must return

Current state, name and preset ID

Open Presets and use the add-preset control. The current web-UI guide shows a + Preset action. The preset documentation explains the options that determine what is saved.

Choose a useful name and note its ID. For the example, assume unused IDs 1 and 2 are available. Use ID 1 for Day display and ID 2 for Evening display. Check availability in an actual setup before saving, so a working preset is not overwritten accidentally.

Include brightness

If brightness must return with the scene, include it in the saved state. If the operator should retain manual brightness while changing the effect, the documented option can leave it out.

The example uses a software master-brightness value of 128 on the documented 0โ€“255 scale for Day display. It is a chosen control value, not a measurement of lumens or electrical power.

Save segment bounds

Enable the documented bounds option when the scene needs to restore its region layout. If bounds are omitted, another layout can remain in effect when the preset is recalled. Choose deliberately between restoring the known layout and preserving a layout changed later.

Brightness and bounds are separate choices. A preset can restore a color/effect while leaving manual brightness available, or it can restore the example’s chosen brightness too. Likewise, saving the state does not require every deployment to use the same bounds policy. Decide which parts of the scene must be repeatable for the operator’s task, then save those items consistently.

Recall one complete two-area display scene

The saved example state

Saved itemAssumed Day display valueRecall purposeRelevant save choice
Region layout0โ€“20 and 20โ€“60, with Stop excludedRestore the two display regionsSave segment bounds
Colors and effectLeft red; right blue; solid effectRestore the selected appearanceUse current state
Master brightness128 on the software scaleRestore the example’s chosen settingInclude brightness
IdentityDay display, assumed ID 1Provide a clear recall targetCorrect name and unused ID

What to compare after calling it back

Use an ordinary control to move away from the scene, then recall its saved ID. Compare the intended ranges, colors, effect and saved brightness. That gives a concrete completion check for the documented workflow.

For Evening display, the example retains the same ranges, uses blue in both and chooses a software brightness of 64. Save it under the other assumed unused ID. An actual operator can then call either named state without rebuilding the two regions each time.

The official preset documentation explains the save options in more detail. Use the installed version’s applicable controls when reproducing the example.

A saved-state diagram relates the two example ranges, color state and preset options used for recall.
The saved fields determine which parts of the example return on recall

Choose a preset or a playlist for the event

A preset is useful when one state needs to return. A playlist chains presets when the desired behavior is a sequence. WLED’s current web-UI guide shows separate add controls for presets and playlists.

Choose the sequence for a display that should move through several documented states. Keep a single preset where staff simply need to recall a known scene. Adding a playlist to a one-state task can make the operator’s job less clear.

A daily clock event is another requirement. Wanting Day display at a particular local time does not, by itself, call for a sequence of states. Save the required state first and then assign the appropriate time-controlled event.

Putting Day display and Evening display into a sequence would describe states that follow one another according to that sequence’s setup. It would not express the example’s two daily clock requests. Keeping that difference clear also helps staff know whether they should recall one scene, start a sequence or inspect a scheduled event.

Schedule the saved state at a local time

Preset ID, hour and weekdays

The preset documentation describes Time & Macros and its Time-controlled presets entries. Select the intended preset ID, hour, minute and active weekdays, then save the applicable settings page.

For an assumed weekday routine, Day display, ID 1, is requested at 09:00 and Evening display, ID 2, at 18:00. The times are operating requirements for the example, not universal store hours.

Time source and timezone

Compare the displayed local time with the actual intended time. The documentation recommends a reliable time source and the correct timezone. A saved preset and an incorrect clock can each work individually while producing the wrong daily behavior together.

Use the controller’s displayed time as part of that comparison. The time shown on a phone or computer is a different reference; opening the interface there does not establish the controller’s clock state. Check the active weekdays with the hour and minute as well, so a deliberately disabled day is not confused with a preset that failed to save.

Keep the schedule within the installed system’s documented time arrangement. Do not assume that an app, network or restart condition is identical across different controller products.

A timeline relates assumed 09:00 and 18:00 preset triggers to a separate controller startup event.
A clock trigger and a startup state are separate operating events

Plan for power return and a missed trigger minute

Boot preset and normal power return

The WLED settings documentation lists an Apply preset at boot choice. Treat it as a separate decision from the daily schedule. Pick the documented startup behavior appropriate to the operating brief, then keep it with the scene record.

The documented missed-minute behavior

The preset page states that a timed entry applies at the start of its specified minute. Its example explains that a controller starting later does not automatically replay the missed event.

Start or event timeDocumented behaviorBoot-state questionOperator choice
Running with correct time before 09:00The enabled 09:00 entry can apply its saved presetWhich state was used before that event?Keep the intended schedule and startup record
Starts at 09:30 after the 09:00 entryThe missed 09:00 event is not automatically replayedWhich preset or normal state loads at boot?Use the required ordinary recall or documented startup choice
The displayed local time is incorrectThe clock basis does not match the briefHow does this installed system establish time?Resolve the documented time setting before relying on the schedule

This distinction prevents a daily event from being mistaken for a persistent rule that selects the right state whenever power returns. Describe both requirements when another operator takes over the display.

Keep the scene usable across repeat installations

Bounds, length and source functions

Changed deployment fieldWhat the preset containsReview neededWhat may remain
Configured length or visible regionSaved range boundariesThe intended mapping and bounds choiceThe desired scene names and operating task
Source functions or controller versionColors, effects and relevant stateThe documented supported functions and fieldsThe brief, where those functions still serve it
Local time or power-return requirementPreset IDs and related settingsClock, schedule and boot behaviorThe selected visible scene, if still appropriate

A record that another operator can use

Keep the visible-area map, ranges, preset names and IDs together. Include the intended schedule and power-return behavior. WLED’s documented backup controls can preserve settings where available to the authorized operator; restoring data is a separate action that can overwrite existing configuration.

For example, if another brief uses 90 configured pixels, the saved 0โ€“20 and 20โ€“60 ranges still describe only 60. Decide whether the additional 30 belong to a changed right region or another intended area before adapting the preset. Renaming Day display would not answer that mapping question. The scene’s purpose can remain useful while its saved geometry needs revision.

A useful handover lets staff recall the required scene and understand which changes affect it. That is the practical completion of programming this example: the display has defined regions, repeatable states and a time/startup plan tied to its actual supported system.

Static color accents occupy distinct parts of a completed interior light line.
Keep the desired visible areas and operating events with the saved scene map

FAQ

Frequently Asked Questions

Do I need to write code to program a strip?

Not for every controller task. An installed supported system may provide normal scene and preset controls. Custom firmware programming is another workflow; use the path actually supported by the controller.

Why did changing one color change both segments?

WLED applies a normal color or effect change to the selected segments. Check the selected set before assuming that two areas have become one hardware group.

Why does a recalled preset restore an older segment layout?

Check whether segment bounds were saved with that preset. The documented option can restore its earlier ranges; omitting bounds can preserve another layout. Choose the behavior intended for the deployment.

Is a playlist the same as a daily schedule?

No. A playlist chains preset states. A daily schedule applies a preset at a clock event. Choose the mechanism that serves the actual operating requirement.

Will a timed preset run if the controller starts after that minute?

The cited WLED preset documentation says a missed trigger is not automatically replayed. A controller starting at 09:30 does not catch the 09:00 event. Its boot state is a separate documented choice.

Can the same preset be copied to a strip with a different length?

Review the configured count, visible-area mapping, saved bounds, source functions and version first. The scene brief may remain useful while the ranges or applicable fields need to change.

Related Classifications

Resource Type

Ready to Source or Develop LED Lighting?

Whether you need standard fixtures for a project, custom OEM modules for product integration, or specialized components for manufacturing -- our team is ready to help.

Inquiry Now