Hi guys, after look for some solutions I come here without answers I'd like to have.
I have a sensor to interact with some leds and I am reading the data of it through processing.
The problem is for processing recognize the led terminals as outputs.
I think I need to add or download some library but I am not right if I already have.
here the code:
import processing.serial.*;
//10 leds in total
int pin1 = 2, pin2 = 3, pin3 = 4, pin4 = 5, pin5 = 6;
int pin6 = 7, pin7 = 8, pin8 = 9, pin9 = 10, pin10 = 11;
Serial port;
void setup()
{
port = new Serial(this, Serial.list()[0], 115200);
port.pinMode(pin1, Serial.OUTPUT);
port.pinMode(pin2, Serial.OUTPUT);
port.pinMode(pin3, Serial.OUTPUT);
port.pinMode(pin4, Serial.OUTPUT);
port.pinMode(pin5, Serial.OUTPUT);
port.pinMode(pin6, Serial.OUTPUT);
port.pinMode(pin7, Serial.OUTPUT);
port.pinMode(pin8, Serial.OUTPUT);
port.pinMode(pin9, Serial.OUTPUT);
port.pinMode(pin10, Serial.OUTPUT);
}
...
the error:
Cannot find anything named "Serial.OUTPUT"

