Merge pull request #2226 from gohai/serial-new

Serial: Switch the examples over to printArray()
This commit is contained in:
Casey Reas
2013-11-19 19:41:08 -08:00
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.