I want to programm my arduino nano with eclipse.
The Led blink programm runs fine, but when I want to use the Serial object I get an Error:
../main.c: In function 'main':
../main.c:9: error: 'Serial' undeclared (first use in this function)
../main.c:9: error: (Each undeclared identifier is reported only once
../main.c:9: error: for each function it appears in.)
make: *** [main.o] Error 1
my Code: #include <WProgram.h>
int main(void) {
init();
//
/ Add your setup code here /
//
Serial.begin(57600);
Serial.println("Hello world");
pinMode(13, OUTPUT);
for (; {
digitalWrite(13, HIGH); // set the LED on
delay(2000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
} // end for
return 0;
} // end main
Where is the failure?