Sending string command to DCCpp


I’m using DCCpp for controlling my trains. Everything works fine but now I want to use a controller that I designed for controlling the turnouts and throttles. Yes I know there is a Processing Controller already working and in fact I tried it.
Mine has a power button that sends “<1>” to the serial (to turn DCC on) port just like the Processing Controller does…but nothing happen. If I use the monitor feature in the Arduino IDE and send <1> from the keyboard, it works.

So I guess it has something to do with a carriage return or something.

How do I send the character 13 or 10 (line feed) to the serial port? In the Reference I didn’t find something like chr(13) as in some languages.



Added “\r” to the string and it worked!