File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1103,26 +1103,26 @@ Serial.println("This goes to STDERR");
11031103<a name =" MultipleSerialPorts " ></a >
11041104#### Multiple Serial Ports
11051105
1106- By default, a default instance of ` StdioSerial ` class is created named ` Serial ` ,
1107- which matches the behavior of the Arduino programming framework on actual
1108- microcontrollers which a single serial port is provided by default.
1106+ By default, a default instance of ` StdioSerial ` class is created and named
1107+ ` Serial ` , which matches the behavior of the Arduino programming framework on
1108+ actual microcontrollers where a single serial port is provided by default.
11091109
11101110Some microcontrollers provide multiple serial ports, often called ` Serial1 ` or
11111111` Serial2 ` . We can emulate that in EpoxyDuino by creating additional instances of
1112- ` StdioSerial ` . The following creates a ` Serial1 ` instances bound to STDOUT, and
1113- another ` Serial2 ` bound to STDERR:
1112+ ` StdioSerial ` . The following creates a ` Serial1 ` instance bound to STDOUT, and
1113+ another ` Serial2 ` instance bound to STDERR:
11141114
11151115``` C++
11161116#ifdef EPOXY_DUINO
11171117StdioSerial Serial1(STDOUT_FILENO);
11181118StdioSerial Serial2(STDERR_FILENO);
1119+ #endif
11191120...
11201121void someFunction () {
11211122 Serial1.println("Print to STDOUT");
11221123 Serial2.println("Print to STDERR");
11231124 ...
11241125}
1125- #endif
11261126```
11271127
11281128<a name =" LibrariesAndMocks " ></a >
You can’t perform that action at this time.
0 commit comments