http://playground.arduino.cc/Code/HoldButton
Hello,
I would like to practice on this sketch , but for some reason it won't load on arduino mega 2560.
Any suggestions why?
Thank you for any help.
http://playground.arduino.cc/Code/HoldButton
Hello,
I would like to practice on this sketch , but for some reason it won't load on arduino mega 2560.
Any suggestions why?
Thank you for any help.
Hi storm33
Does the program compile OK? If not, what errors do you get?
If it does compile but the problem is uploading, again what error messages are you seeing?
Regards
Ray
Hackscribble:
Hi storm33Does the program compile OK? If not, what errors do you get?
If it does compile but the problem is uploading, again what error messages are you seeing?
Regards
Ray
hi
it is compile ok no errors at all I can use it on arduino UNO no problem .
On mega it is stops just before uploading is finished and stays like that forever. No errors finished. I have change the board in arduino settings for mega 2560 than that is not a problem,
Thank you
Try uploading a different program, for example the Blink example program. Does that work?
If it does, try editing your original program by changing this statement
Serial.println("It Works!!!");
to this
Serial.println("It Works");
that isworking, thank you, Can you explain me please why this make diferent?
The bootloader on the Mega (which handles uploads from your PC / Mac) reads the !!! as being an escape command. It stops uploading and waits for another command. But the PC / Mac is still trying to upload so it gets stuck.
thank you
thank you
You're welcome, you're welcome