Serial: Switch the examples over to printArray()

This commit is contained in:
gohai
2013-11-19 17:22:13 -08:00
parent 95bac1d04c
commit 0ef72e25c9
3 changed files with 3 additions and 3 deletions
@@ -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].
@@ -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].
@@ -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.