Convert usermods from header to library
This commit is contained in:
9
usermods/sht/library.json
Normal file
9
usermods/sht/library.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "sht",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
||||
@@ -477,4 +477,7 @@ float ShtUsermod::getTemperature() {
|
||||
*/
|
||||
const char* ShtUsermod::getUnitString() {
|
||||
return unitOfTemp ? "°F" : "°C";
|
||||
}
|
||||
}
|
||||
|
||||
static ShtUsermod sht;
|
||||
REGISTER_USERMOD(sht);
|
||||
Reference in New Issue
Block a user