Convert usermods from header to library

This commit is contained in:
Will Tatam
2025-01-11 21:14:20 +00:00
parent 71b0e8e937
commit 90b18158fc
75 changed files with 490 additions and 14 deletions

View File

@@ -0,0 +1,9 @@
{
"name:": "sht",
"build": {
"srcDir": ".",
"includeDir": "../../wled00",
"libLDFMode": "chain+",
"libArchive": false
}
}

View File

@@ -477,4 +477,7 @@ float ShtUsermod::getTemperature() {
*/
const char* ShtUsermod::getUnitString() {
return unitOfTemp ? "°F" : "°C";
}
}
static ShtUsermod sht;
REGISTER_USERMOD(sht);