This usermod will read from an attached DHT22 or DHT11 humidity and temperature sensor. The sensor readings are displayed in the Info section of the web UI.
If sensor is not detected after a while (10 update intervals), this usermod will be disabled.
Copy the example platformio_override.ini
to the root directory. This file should be placed in the same directory as platformio.ini
.
USERMOD_DHT
- define this to have this user mod included wled00\usermods_list.cppUSERMOD_DHT_DHTTYPE
- DHT model: 11, 21, 22 for DHT11, DHT21, or DHT22, defaults to 22/DHT22USERMOD_DHT_PIN
- pin to which DTH is connected, defaults to Q2 pin on QuinLed Dig-Uno's boardUSERMOD_DHT_CELSIUS
- define this to report temperatures in degrees celsious, otherwise fahrenheit will be reportedUSERMOD_DHT_MEASUREMENT_INTERVAL
- the number of milliseconds between measurements, defaults to 60 secondsUSERMOD_DHT_FIRST_MEASUREMENT_AT
- the number of milliseconds after boot to take first measurement, defaults to 90 secondsUSERMOD_DHT_STATS
- For debug, report delay statsIf you are using platformio_override.ini
, you should be able to refresh the task list and see your custom task, for example env:d1_mini_usermod_dht_C
. If not, you can add the libraries and dependencies into platformio.ini
as you see fit.
2020-02-04
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )