From 0ef72e25c9d79f6fd4dc82cfe7b5ead0237c1e81 Mon Sep 17 00:00:00 2001 From: gohai Date: Tue, 19 Nov 2013 17:22:13 -0800 Subject: [PATCH] Serial: Switch the examples over to printArray() --- .../serial/examples/SerialCallResponse/SerialCallResponse.pde | 2 +- java/libraries/serial/examples/SerialDuplex/SerialDuplex.pde | 2 +- .../libraries/serial/examples/SerialMultiple/SerialMultiple.pde | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java/libraries/serial/examples/SerialCallResponse/SerialCallResponse.pde b/java/libraries/serial/examples/SerialCallResponse/SerialCallResponse.pde index b68641ac0..627b27a75 100644 --- a/java/libraries/serial/examples/SerialCallResponse/SerialCallResponse.pde +++ b/java/libraries/serial/examples/SerialCallResponse/SerialCallResponse.pde @@ -33,7 +33,7 @@ void setup() { ypos = height/2; // Print a list of the serial ports, for debugging purposes: - println(Serial.list()); + printArray(Serial.list()); // I know that the first port in the serial list on my mac // is always my FTDI adaptor, so I open Serial.list()[0]. diff --git a/java/libraries/serial/examples/SerialDuplex/SerialDuplex.pde b/java/libraries/serial/examples/SerialDuplex/SerialDuplex.pde index 1a012a206..38dc2f204 100644 --- a/java/libraries/serial/examples/SerialDuplex/SerialDuplex.pde +++ b/java/libraries/serial/examples/SerialDuplex/SerialDuplex.pde @@ -22,7 +22,7 @@ void setup() { textFont(myFont); // List all the available serial ports: - println(Serial.list()); + printArray(Serial.list()); // I know that the first port in the serial list on my mac // is always my FTDI adaptor, so I open Serial.list()[0]. diff --git a/java/libraries/serial/examples/SerialMultiple/SerialMultiple.pde b/java/libraries/serial/examples/SerialMultiple/SerialMultiple.pde index cd46cbcd8..0646a4dc9 100644 --- a/java/libraries/serial/examples/SerialMultiple/SerialMultiple.pde +++ b/java/libraries/serial/examples/SerialMultiple/SerialMultiple.pde @@ -13,7 +13,7 @@ int[] dataIn = new int[2]; // a list to hold data from the serial ports void setup() { size(400, 300); // print a list of the serial ports: - println(Serial.list()); + printArray(Serial.list()); // On my machine, the first and third ports in the list // were the serial ports that my microcontrollers were // attached to.