ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
As @gvdhoorn mentioned, if n == 0
, you will apply digitalWrite()
on the pin 0 that is the serial RX pin on the Arduino MEGA and the serial communication will no longer work.