Je te remercie, mais ça ne m'aide pas vraiment, les erreurs qu'ils disent de corriger son déjà résolu dans les fichier que j'ai.
Quand je met mon main.cpp voici l'erreur que j'ai.
12:04:17 **** Incremental Build of configuration Release for project Blinky ****
make all
Building target: Blinky.elf
Invoking: AVR C++ Linker
avr-gcc --cref -s -Os -o"Blinky.elf" ./main.o -lm -Wl,-Map,Blinky.map,--cref -L"C:\arduino-1.0.3\hardware\arduino\cores\arduino" -mmcu=atmega2560
./main.o: In function loop': main.cpp:(.text+0x6): undefined reference to
digitalWrite'
main.cpp:(.text+0x12): undefined reference to delay' main.cpp:(.text+0x1c): undefined reference to
digitalWrite'
main.cpp:(.text+0x28): undefined reference to delay' ./main.o: In function
setup':
main.cpp:(.text+0x34): undefined reference to pinMode' ./main.o: In function
main':
main.cpp:(.text+0x3a): undefined reference to `init'
make: *** [Blinky.elf] Error 1
12:04:17 Build Finished (took 609ms)
Et voici le code:
#include <Arduino.h>
int ledPin = 12; // LED connected to digital pin 13
// The setup() method runs once, when the sketch starts
void setup() {
// initialize the digital pin as an output:
pinMode(ledPin, OUTPUT);
}
// the loop() method runs over and over again,
// as long as the Arduino has power
void loop()
{
digitalWrite(ledPin, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(1000); // wait for a second
}
int main(void) {
/* Must call init for arduino to work properly */
init();
setup();
for (;;) {
loop();
} // end for
} // end main
Je te remercie d'avance pour l'aide que tu pourra m'apporter