-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
added support for fseq files #4570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Andrejchrcek
wants to merge
9
commits into
wled:main
Choose a base branch
from
Andrejchrcek:fseq1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0327ab3
added support for fseq files
e1a9ccc
Added network discovery for xLights and FPP file uploading
4b5bbd0
readme edit
cac8cef
readme edit
72a806e
readme edit
8646e76
add cd card pin setting to wled usermod setup
6df59a0
Záloha kódu - neprístupná pre ostatných
0de772e
maybe functional version of FSEQ usermod
dad3c4e
Updated UI, added loop function, improved FPP sync functionality
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| ### Configure PlatformIO | ||
|
|
||
| Add the following configuration to your `platformio_override.ini` (or `platformio.ini`) to enable the necessary build flags and define the usermod: | ||
|
|
||
| ```ini | ||
| [env:esp32dev_V4] | ||
| build_flags = | ||
| -D WLED_DEBUG | ||
| -D WLED_USE_SD_SPI | ||
| -D USERMOD_FSEQ | ||
| -std=gnu++17 | ||
| -I wled00/src/dependencies/json | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| # SD & FSEQ Usermod for WLED | ||
|
|
||
| This usermod adds support for playing FSEQ files from an SD card and provides a web interface for managing SD files and FSEQ playback. Follow the instructions below to install and use this usermod. | ||
|
|
||
| --- | ||
|
|
||
| ## Installation | ||
|
|
||
| ### 1. Modify `usermods_list.cpp` | ||
|
|
||
| Add the following lines to register the FSEQ usermod. Make sure that you **do not** include any conflicting modules (e.g. `usermod_sd_card.h`): | ||
|
|
||
| ```cpp | ||
| #ifdef USERMOD_FSEQ | ||
| #include "../usermods/FSEQ/usermod_fseq.h" | ||
| #endif | ||
|
|
||
| #ifdef USERMOD_FSEQ | ||
| UsermodManager::add(new UsermodFseq()); | ||
| #endif | ||
|
|
||
| // #include "../usermods/sd_card/usermod_sd_card.h" | ||
|
|
||
|
|
||
| ### 2. Configure PlatformIO | ||
|
|
||
| Add the following configuration to your platformio_override.ini (or platformio.ini) to enable the necessary build flags and define the usermod: | ||
|
|
||
|
|
||
| [env:esp32dev_V4] | ||
| build_flags = | ||
| -D WLED_DEBUG | ||
| -D WLED_USE_SD_SPI | ||
| -D WLED_PIN_SCK=18 ; CLK | ||
| -D WLED_PIN_MISO=19 ; Data Out (POCI) | ||
| -D WLED_PIN_MOSI=23 ; Data In (PICO) | ||
| -D WLED_PIN_SS=5 ; Chip Select (CS) | ||
| -D USERMOD_FSEQ | ||
| -std=gnu++17 | ||
|
|
||
|
|
||
|
|
||
| ### 3. Update the WLED Web Interface | ||
|
|
||
| To integrate the new FSEQ functionality into the WLED UI, add a new button in your index.htm file. For example, insert the following button into the navigation area: | ||
|
|
||
| <!-- New button for SD & FSEQ Manager --> | ||
| <button onclick="window.location.href=getURL('/sd/ui');"> | ||
| <i class="icons"></i> | ||
| <p class="tab-label">Fseq</p> | ||
| </button> | ||
|
|
||
|
|
||
| This button will take you to the SD & FSEQ Manager interface. | ||
|
|
||
|
|
||
|
|
||
| ###Usage | ||
| • Web Interface: | ||
| Access the SD & FSEQ Manager by clicking the Fseq button in the main UI. The interface allows you to view, upload, and delete SD card files as well as control FSEQ playback. | ||
| • File Management: | ||
| The SD file manager displays all files on the SD card. You can upload new files via the provided form and delete files using the red “Delete” button. | ||
| • FSEQ Playback: | ||
| Once an FSEQ file is loaded, the usermod will play the sequence on the LED strip. Use the provided web interface to start and stop playback. | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider adding hardware requirements section.
The introduction should specify the required hardware setup, particularly the SD card module specifications and wiring details.
Add a new section after the introduction: