Skip to content

Commit fa7a9ce

Browse files
committed
Serial: Switch the examples over to printArray()
1 parent f8bceac commit fa7a9ce

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

java/libraries/serial/examples/SerialCallResponse/SerialCallResponse.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void setup() {
3333
ypos = height/2;
3434

3535
// Print a list of the serial ports, for debugging purposes:
36-
println(Serial.list());
36+
printArray(Serial.list());
3737

3838
// I know that the first port in the serial list on my mac
3939
// is always my FTDI adaptor, so I open Serial.list()[0].

java/libraries/serial/examples/SerialDuplex/SerialDuplex.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void setup() {
2222
textFont(myFont);
2323

2424
// List all the available serial ports:
25-
println(Serial.list());
25+
printArray(Serial.list());
2626

2727
// I know that the first port in the serial list on my mac
2828
// is always my FTDI adaptor, so I open Serial.list()[0].

java/libraries/serial/examples/SerialMultiple/SerialMultiple.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ int[] dataIn = new int[2]; // a list to hold data from the serial ports
1313
void setup() {
1414
size(400, 300);
1515
// print a list of the serial ports:
16-
println(Serial.list());
16+
printArray(Serial.list());
1717
// On my machine, the first and third ports in the list
1818
// were the serial ports that my microcontrollers were
1919
// attached to.

0 commit comments

Comments
 (0)