Update the analog maximum according datasheet

This commit is contained in:
Ollo 2022-03-06 13:47:21 +01:00
parent defbcca8ae
commit 868d3d912e

View File

@ -33,7 +33,7 @@
#define I2C1_SDA GPIO_NUM_34 /**< GPIO 34 - I2C */
#define I2C1_SCL GPIO_NUM_35 /**< GPIO 35 - I2C */
#define FIRMWARE_VERSION "sw 2.2 hw 0.10b"
#define FIRMWARE_VERSION "sw2.201 hw0.10b"
#define TIMED_LIGHT_PIN CUSTOM1_PIN5
#define FLOWMETER_PIN CUSTOM1_PIN1
@ -44,7 +44,7 @@
#define MOIST_SENSOR_MAX_FRQ 10000 // 10kHz (as never more then 3000 was measured)
#define MOIST_SENSOR_MIN_FRQ 1000 // 1kHz (500Hz margin)
#define ANALOG_SENSOR_MAX_MV 1000
#define ANALOG_SENSOR_MAX_MV 4095 /**< Maximum according https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/adc.html */
#define ANALOG_SENSOR_MIN_MV 100
#define SOLAR_VOLT_FACTOR 11