Arduino MEGA and Eclipse configuration

Hello
I want programed the Arduino Mego on Eclipse software (version 3.6.1) but i don't manage it.
I have followed the "How to" (with compiling the librairie on the software) but it doesn't work.
I can build and load my software on arduino but nothing is done.
I have Copy/Paste the "blink" program exemple...

Someone have any idea or any valide configuration for eclipse (with a valid exemple)?

thanks fo your help

This is my main :
int main(void) {

/* Must call init for arduino to work properly */
init();

//
/
Add your setup code here /
/
/

pinMode(13, 1);

for (;:wink:
{
digitalWrite(13, 0); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, 0); // set the LED off
delay(1000); // wait for a second

//
/
write main loop here /
/
/
} // end for

} // end main

digitalWrite(13, 0);   // set the LED on
      delay(1000);              // wait for a second
      digitalWrite(13, 0);    // set the LED off
      delay(1000);              // wait for a second

Turn the pin off. Wait for a second. Turn the pin off again. Wait for another second. Repeat until the end of time.

It doesn't work? What happens? Does the light get turned on instead?

Hello PaulS

Yes, the Led is still OFF and will never ON. (no blink mode.. :'()
and I don't understand why...
Have you some idea?

(It is not an hardware problem because the "blink" program exemple in arduino works with arduino software)

Thanks for you help Pauls

Yes, the Led is still OFF and will never ON.

Point out, in your code, where you turn the light on.

You have two digitalWrite statements. Both set the pin OFF. If you want the light to blink, one of them needs to turn the light ON.

Yes you are wright.
Because i have mande many test, the last main used (and posted are not OK).
I have update the main as :

dint main(void) {

/* Must call init for arduino to work properly */
init();

//
/
Add your setup code here /
/
/

pinMode(13, 1);

for (;:wink:
{
digitalWrite(13, 1); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, 0); // set the LED off
delay(1000); // wait for a second

//
/
write main loop here /
/
/
} // end for

} // end main

Now the Led is always ON.... and never Off... :-/