Convert AnimARTrix usermod to library

Borrowed library definition from @netmindz's work on #4476.
This commit is contained in:
Will Miles 2025-01-11 13:32:28 -05:00
parent 4d5e0ca7a3
commit 71b0e8e937
4 changed files with 15 additions and 11 deletions

View File

@ -166,9 +166,6 @@ lib_deps =
; https://github.com/adafruit/Adafruit_MAX1704X @ 1.0.2
#For MPU6050 IMU uncomment follwoing
;electroniccats/MPU6050 @1.0.1
# For -D USERMOD_ANIMARTRIX
# CC BY-NC 3.0 licensed effects by Stefan Petrick, include this usermod only if you accept the terms!
;https://github.com/netmindz/animartrix.git#18bf17389e57c69f11bc8d04ebe1d215422c7fb7
# SHT85
;robtillaart/SHT85@~0.3.3

View File

@ -0,0 +1,12 @@
{
"name": "animartrix",
"build": {
"srcDir": ".",
"includeDir": "../../wled00",
"libLDFMode": "chain+",
"libArchive": false
},
"dependencies": {
"Animartrix": "https://github.com/netmindz/animartrix.git#b172586"
}
}

View File

@ -6,9 +6,5 @@ CC BY-NC 3.0 licensed effects by Stefan Petrick, include this usermod only if yo
## Installation
Please uncomment the two references to ANIMartRIX in your platform.ini
lib_dep to a version of https://github.com/netmindz/animartrix.git
and the build_flags -D USERMOD_ANIMARTRIX
Add 'animartrix' to 'custom_usermods' in your platformio_override.ini.

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include <ANIMartRIX.h>
@ -452,5 +450,6 @@ class AnimartrixUsermod : public Usermod {
};
static AnimartrixUsermod animartrix_module("Animartrix", false);
REGISTER_USERMOD(animartrix_module);