mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Serial: Switch the examples over to printArray()
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user