This commit is contained in:
Paint Your Dragon 2011-11-21 12:19:27 -08:00
parent d8f781210a
commit 4490ac5a4b
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ void setup() {
// Open serial port. As written here, this assumes the Arduino is the
// first/only serial device on the system. If that's not the case,
// change "Serial.list()[0]" to the name of the port to be used:
port = Serial(this, Serial.list()[0], 115200);
port = new Serial(this, Serial.list()[0], 115200);
// Alternately, in certain situations the following line can be used
// to detect the Arduino automatically. But this works ONLY with SOME
// Arduino boards and versions of Processing! This is so convoluted