views:

413

answers:

2

Hi,

I'm controlling a serial printer from arduino, now it works perfect but i need to send it escape characters to controll some especific features of the printer. Anybody can show me a way to do that?

i need to send "ESC i"

thx

+1  A: 
Matthias Wandel
The arduino's way:Serial.print("\x1B" "i"); orSerial.print("\033" "i");
z3a
A: 
Serial.print(27, BYTE); // ASCII code for the Escape character
Serial.print("i");
Matthew Murdoch