Bonjour,
quand je branche une led elle clignote alors que je n'ai rien demandé.
J'ai donc écris ci-dessous pour controller le clignotement avec dans la loop 5s:
void setup() {
// put your setup code here, to run once:
pinMode(13,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(13,HIGH);
delay(5000);
}
ma configuration : Arduino: 1.6.6 (Mac OS X), Board: "Arduino/Genuino Uno"
Mais quand j'upload/compile avec le boutton upload j'ai cette erreur:
/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware
"/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/xavi/Library/Arduino15/packages" -tools "/Applications/Arduino.app/Contents/Java/tools-builder" -tools
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr" -tools
"/Users/xavi/Library/Arduino15/packages" -built-in-libraries
"/Applications/Arduino.app/Contents/Java/libraries" -libraries "/Users/xavi/Documents/Arduino/libraries" -fqbn=arduino:avr:uno -vid-pid=0X2A03_0X0043 -ide-version=10606 -build-path
"/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "/Users/xavi/Documents/Arduino/helloworld/helloworld.ino"
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware "/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/xavi/Library/Arduino15/packages" -tools "/Applications/Arduino.app/Contents/Java/tools-builder" -tools "/Applications/Arduino.app/Contents/Java/hardware/tools/avr" -tools "/Users/xavi/Library/Arduino15/packages" -built-in-libraries "/Applications/Arduino.app/Contents/Java/libraries" -libraries "/Users/xavi/Documents/Arduino/libraries" -fqbn=arduino:avr:uno -vid-pid=0X2A03_0X0043 -ide-version=10606 -build-path "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "/Users/xavi/Documents/Arduino/helloworld/helloworld.ino"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp"
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/cores/arduino" "-I/Users/xavi/Library/Arduino15/packages/arduino/hardware/avr/1.6.10/variants/standard" "/var/folders/t1/dzcbnfkj0x926nw4zcrn9_t80000gn/T/buildbda9d1b1fc46b7d3fdb544edfa300ef3.tmp/sketch/helloworld.ino.cpp" -o ""
avr-g++: error: missing filename after '-o'
exit status 1
Error compiling.
Merci