ESP32C3 lib of ad-read error #6755
Labels
Area: Peripherals API
Relates to peripheral's APIs.
Chip: ESP32-C3
Issue is related to support of ESP32-C3 Chip
Status: Solved
Milestone
Board
esp32-c3-devkitm-1
Device Description
nop
Hardware Configuration
nop
Version
v2.0.3
IDE Name
Arduino IDE
Operating System
Windows10
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
115200
Description
I want to read ad value.But here is a problem,i find C3's arduino lib ad attenuation have diference with datasheet.
datasheet show 750,1050,1300,2500 (mV)
but the arduino lib esp32-hal-adc.c Line 249 show
switch(__analogAttenuation){
case 3: max_mv = 3900; break;
case 2: max_mv = 2200; break;
case 1: max_mv = 1500; break;
default: break;
}
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: