null pointer exception


hey guys, i'm new , attempting create simon says program ardruino. arduino program works fine when try communicate serial port processing keep getting "null pointer exception" message. have looked online nothing makes sense in relation specific problem. please me out, appreciate it. here processing code:
code: [select]

void setup() {
  println(serial.list());


}
void draw(){
if (key == 'a'){
  port.write(1);
}
if (key == 'w'){
  port.write(2);
}
if (key == 'd'){
  port.write(3);
}
if (key == 's'){
  port.write(4);
}
}


quote
...when try communicate serial port processing keep getting "null pointer exception" message...
processing raising exception?



Arduino Forum > Using Arduino > Interfacing w/ Software on the Computer > null pointer exception


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code