Serial: The function "list()" does not exist

edited August 2016 in Questions about Code

I just tried running the code on the Serial.list() man page and I'm getting the error: The function "list()" does not exist.

Here's the code:

import processing.serial.*;

Serial myPort;       

void setup() 
{
  size(400, 200);
  printArray(Serial.list());
}

void draw() 
{ 
  background(0);
}
Tagged:

Answers

  • OK, weird... This code works only in a blank processing sketch BEFORE saving it to disk. The minute I save it I get the error mentioned above.

Sign In or Register to comment.