I'm using "DOIT ESP32 DEVKIT V1".When applied the below code, there are about ten milliseconds between readings. It is unknown what the controller is doing during this time.
#Code:
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println(millis());
}
#Sambel of result in Serial monitor:
56469
56469
56469
56469
56469
56469
56469
56469
56469
56469
56469
56469
56479
56479
56480
56480
56480
56480
56480
56480
Delay in reading millis by serial monitor
-
- Posts: 1
- Joined: Wed Aug 07, 2024 9:06 pm
Delay in reading millis by serial monitor
- Attachments
-
- missing millis.png (31.15 KiB) Viewed 628 times
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: Delay in reading millis by serial monitor
It's sending the millis to your serial monitor. That takes time as well. It doesn't for the first bunch of readings as there is a buffer that slowly fills up.
Who is online
Users browsing this forum: No registered users and 157 guests