-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FEATURE] Migration to PlatformIO #17
Comments
GitHub ActionsI now have a working demo of using GitHub Actions to run CI scripts and compile the firmware binary automatically. Output from last run:
The next step is to store the |
UpdateIt looks like it's not easy/possible to include the LittleFS Web assets (HTML, JS, CSS) in the compiled firmware file. This means that users would need to upload both the firmware AND the filesystem, which is much more complex. So to simplify this, we will need to compile the filesystem data into the firmware directly. WLED achieves this by compiling their data directory (web assets) into C header files, which are then loaded into memory. We can do something similar, it just means any changes to those web assets will need to be recompiled before being included in the release. See: Aircoookie/WLED#921 We may be able to include this as part of the GitHub Actions pipelines, ideally so that these class files do not need to be tracked in Git. But this may cause additional issues, so it requires investigation. |
This has already mostly been implemented in #14 however it is important enough of a change to require its own Issue.
A new
platformio.ini
file has been created in the repository, containing the settings needed to compile/upload to the ESP8266 D1 Mini Clone on the GBFans Lightkit.Instructions
Compiling Firmware
cd SOFTWARE/AfterlifeLightKit pio run
Uploading Firmware to board
Connect board via USB
cd SOFTWARE/AfterlifeLightKit pio run --target upload
Uploading Filesystem to Board
Connect board via USB
cd SOFTWARE/AfterlifeLightKit pio run --target uploadfs
The text was updated successfully, but these errors were encountered: