Go Down

Topic: The Graph Program (Read 426 times) previous topic - next topic

p07gbar

I tried to verify the arduino code for the Graph projects in Tutorials http://www.arduino.cc/en/Tutorial/Graph. but it said : In function 'void setup()':
error: redefinition of 'void setup()' In function 'void loop()': any reason for it to do this.
I'm using arduino 0010
Thanks
Never wing it, unless it's convenient.

westfw

Did you put both the arduino AND processing code into Arduino?  The only thing you should have inside arduino is:
Code: [Select]
void setup()
{
 Serial.begin(9600);
}

void loop()
{
 Serial.println(analogRead(0));
 delay(20);
}


The other stuff gets entered into the "processing" environment and compiled/run on the host system, but I don't know anything about that...

p07gbar

I no  but it comes up with the error message.
Never wing it, unless it's convenient.

p07gbar

ah got it working
didn't understand the tabs thing
sorry I'm n00bish
Never wing it, unless it's convenient.

Go Up