please hlep me .something wrong with my code plssssssss

import processing.serial.*; Serial port; int inp = 0; int wdt=800, ht=600; void setup() { println(Serial.list()); port= new Serial(this,Serial.list()[0],9600); size(800,600); } void serialEvent (Serial port) { while(port.available()==0); inp=port.read(); } void draw() { fill(0,0,0); text(inp, 400,300); textSize(25); }

import processing.serial.*; Serial port; int inp = 0; int wdt=800, ht=600; void setup() { println(Serial.list()); port= new Serial(this,Serial.list()[0],9600); size(800,600); } void serialEvent (Serial port) { while(port.available()==0); inp=port.read(); } void draw() { fill(0,0,0); text(inp, 400,300); textSize(25); }

these have to read serial data from arduino and print the value, it is printing but overlapping in processing

That's Processing. That will at least help you find the right forum.

And don't cross-post - topics merged.

A little information is required.
What is the problem, what are you trying to do, what are you expecting and what are you getting? It would also be helpful if you included some comments in the code.

Please note there is another forum for processing problems.

thanx can any one post the link of processing forum