-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
topic: documentationRelated to documentation for the projectRelated to documentation for the projecttype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
The "ADC_Dual_Mode" example is configured to process the buffer every millisecond:
if (millis() - last_millis > 1) { |
This interval is nonsense because the example must acquire new values and print a significant number of characters in that time:
Serial.println(buf1.timestamp()); // Print buffer timestamp | |
Serial.println(buf1[0]); // Print sample from first channel | |
Serial.println(buf1[1]); // Print sample from second channel | |
Serial.println(buf2.timestamp()); // Print buffer timestamp | |
Serial.println(buf2[0]); // Print sample from first channel | |
Serial.println(buf2[1]); // Print sample from second channel |
This will take longer than a millisecond. And so the effective update rate will be slower than implied by the code.
Metadata
Metadata
Assignees
Labels
topic: documentationRelated to documentation for the projectRelated to documentation for the projecttype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project