Sending a newline character from terminal?

greencardigan

Senior Member
I am trying to test some serial code in one of my projects and need to be able to send some commands to the picaxe. The picaxe is expecting commands which end with a new line byte (ASCII 10) rather than a carriage return + new line.

Can I do this from the serial terminal in PE?
 

hippy

Ex-Staff (retired)
AFAIK, there's no way to send just line-feed from the Programming Editor Terminal.

You would have to use a Terminal Emulator which does support it or you could modify your code, for example ...

Symbol EOL = LF

Do
SerRxd b0
Loop Until b0 = EOL

Use "EOL" rather than "CR" or "LF", thne set "EOL" to one or the other and download depending on what you wish to control the PICAXE with.
 

Texy

Senior Member
How about trying CTRL-J - that should send ASCII character 10, but it depends on how the terminal program reacts.

Texy
 

Grogster

Senior Member
It was this exact kind of problem which led me to build a serial message generator using an 08M chip. You program the chip for what you want to send to the 2nd PICAXE, and then send that specific code or codes at the press of a button. Not aware of any EASY way to send control codes via a terminal software...
 
Top