Hey guys,
Unfortunately, I don’t own one of the esp32c2/esp32c3/esp32c6 boards I was wondering if some of you guys could help me testing ![]()
I would like to know what is the elapsed time of analogRead on that board.
So if someone could let me know what would be the output of this code that would be very very helpful.
void setup() {
Serial.begin(115200);
}
int t = 0;
unsigned int timestamp = micros();
int tmp_read;
void loop() {
tmp_read = analogRead(A0); // read analog input from any analog pin - feel free to change it
if(t++> 10000){ // 10k analog reads
t = 0;
Serial.println(micros() - timestamp);
timestamp = micros();
}
}
Thanks a lot!
