When the serial device name is not passed with paramerer -d
then the PC app will try to find an existing serial device.
* On Windows: selects the COM device with the highest number.
* On Linux: selects the serial usb device in any order, but
priority is given to devices with Arduino name.
* ON MAC OS: selects the last /dev/tty.* or /dev/tty/wchusb*
device in the order that OS lists them.
This serial port detection should work OK if you have only one
Arduino attached. If you have (and need to have) several
Arduinos or serial ports connected at the same time then pass
the '-d' parameter to specify which one to use.
After testing with genuine arduino uno I could not make
it to work reliably using the original baudrate 38400 on
Windows 7. Linux worked OK, but Windows 7 inserted extra 2
bytes 0xFE or 0xFF at the beginnig of the serial communication
(at least that's what arduino read from the serial line).
Baudrate 57600 so far had no issue, another reliable option
seem to be 9600.
This fixes an issue with Arduino IDE which opens all .c files
(even unrelated) in the same directory when the .ino file is opened.
Fixes compilation error described in issue #10