57421d2392
* Change Temperature usermod to use async reading to avoid blocking * Fix comparison on wait time * Add * Simplify logic in the loop method * Optimize calls to minimize latency, inform user how long till first measurement * disable usermod if sensor not found * Added debug statements on init, update readme * fix spelling error of celsius
31 lines
593 B
C++
31 lines
593 B
C++
#include "wled.h"
|
|
/*
|
|
* Register your v2 usermods here!
|
|
*/
|
|
|
|
/*
|
|
* Add/uncomment your usermod filename here (and once more below)
|
|
* || || ||
|
|
* \/ \/ \/
|
|
*/
|
|
//#include "usermod_v2_example.h"
|
|
#ifdef USERMOD_DALLASTEMPERATURE
|
|
#include "../usermods/Temperature/usermod_temperature.h"
|
|
#endif
|
|
|
|
//#include "usermod_v2_empty.h"
|
|
|
|
void registerUsermods()
|
|
{
|
|
/*
|
|
* Add your usermod class name here
|
|
* || || ||
|
|
* \/ \/ \/
|
|
*/
|
|
//usermods.add(new MyExampleUsermod());
|
|
#ifdef USERMOD_DALLASTEMPERATURE
|
|
usermods.add(new UsermodTemperature());
|
|
#endif
|
|
|
|
//usermods.add(new UsermodRenameMe());
|
|
} |