1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-27 21:16:50 +03:00

Add reference on how to enable printf function

This commit is contained in:
Andrew McDonnell 2015-06-30 22:58:42 +09:30
parent 212a2cfa60
commit 5a7187ef79

View File

@ -83,6 +83,8 @@ more than 20 milliseconds is not recommended.
By default the diagnostic output from WiFi libraries is disabled when you call ```Serial.begin```. To enable debug output again, call ```Serial.setDebugOutput(true);```. To redirect debug output to ```Serial1``` instead, call ```Serial1.setDebugOutput(true);```.
You also need to use ```Serial.setDebugOutput(true)``` to enable the Arduinio ```printf()``` function.
Both ```Serial``` and ```Serial1``` objects support 5, 6, 7, 8 data bits, odd (O), even (E), and no (N) parity, and 1 or 2 stop bits. To set the desired mode, call ```Serial.begin(baudrate, SERIAL_8N1);```, ```Serial.begin(baudrate, SERIAL_6E2);```, etc.
#### Progmem ####