We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › Processing to Arduino question
Page Index Toggle Pages: 1
Processing to Arduino question (Read 645 times)
Processing to Arduino question
Oct 24th, 2008, 1:38pm
 
I´m working on a sketch that reads analog values from an ultrasound sensor connected to the Arduino, and I´ve come to a strange issue

if I set the size of the sketch, I read wicked random values from the serial port..

if I disable the size on the setup() method, I can read clean values from the serial port

is there any solution for this?
am I doing something wrong?

i can post the code if needed

Re: Processing to Arduino question
Reply #1 - Oct 24th, 2008, 5:57pm
 
i´m using 'resize(int width, int height);' instead of 'size(int width, int height);' and it works Cheesy
Page Index Toggle Pages: 1