mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12
By design, it's 12 dB. There're errors among chips, so the actual attenuation will be 11dB more or less
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
/* Ints are used here to be able to include the file in assembly as well */
|
||||
#define EXAMPLE_ADC_CHANNEL 6 // ADC_CHANNEL_6, GPIO34 on ESP32, GPIO7 on ESP32-S3
|
||||
#define EXAMPLE_ADC_UNIT 0 // ADC_UNIT_1
|
||||
#define EXAMPLE_ADC_ATTEN 3 // ADC_ATTEN_DB_11
|
||||
#define EXAMPLE_ADC_ATTEN 3 // ADC_ATTEN_DB_12
|
||||
#define EXAMPLE_ADC_WIDTH 0 // ADC_BITWIDTH_DEFAULT
|
||||
|
||||
/* Set low and high thresholds, approx. 1.35V - 1.75V*/
|
||||
|
Reference in New Issue
Block a user