ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

moisture.h 726B

1234567891011121314151617181920212223
  1. /*
  2. * moisture.h
  3. *
  4. * ESP8266 / ESP32 Environmental Sensor
  5. *
  6. * ----------------------------------------------------------------------------
  7. * "THE BEER-WARE LICENSE" (Revision 42):
  8. * <xythobuz@xythobuz.de> wrote this file. As long as you retain this notice
  9. * you can do whatever you want with this stuff. If we meet some day, and you
  10. * think this stuff is worth it, you can buy me a beer in return. Thomas Buck
  11. * ----------------------------------------------------------------------------
  12. */
  13. #ifndef __ESP_ADC_MOISTURE_SENSOR__
  14. #define __ESP_ADC_MOISTURE_SENSOR__
  15. int moisture_count(void);
  16. int moisture_read(int sensor);
  17. int moisture_max(void);
  18. void moisture_init(void);
  19. #endif // __ESP_ADC_MOISTURE_SENSOR__