We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e13f83 commit f7ad8a0Copy full SHA for f7ad8a0
Printf.cpp
@@ -15,7 +15,7 @@ int printf(const char* fmt, ...) {
15
va_end(arg_ptr);
16
17
// output to the serial console through the 'Serial'
18
- len = Serial.write((uint8_t*)buf, (size_t)len);
+ len = Serial.print(buf);
19
20
return len;
21
}
README.md
@@ -14,8 +14,8 @@ This library allows you to output a format string to the serial monitor through
14
void setup() {
// put your setup code here, to run once:
- Serial.begin(9600);
- while (!Serial);
+ Serial.begin(250000);
+ delay(1000); // `while (!Serial);` is not enough for UNO R4 WiFi
for (float f = 0.0; f <= 1.0 + EPSILON; f += 0.01) {
printf("f = %4.2f\n", f);
0 commit comments