I wonder if someone here can explain,why this code is working on,UNO R3 and not on MEGA 2560 R3.
When you power up Arduino,there will be a light on pin 9,then it will flash fast,its mean no communication.(slow flash,good communication)
This code is working on UNO,but not on MEGA.
I have two MEGA 2560 R3,both its the same the code is not working.
If someone have a mega to test,use a 5mm led and connect that with a resistor 220ohm,on pin 9
there was something wrong with the arduino mega board