Im trying to send ctrl-z with xctu but i am unshure on how to do this.
any suggestions?
Set Numlock on.
Hold down the ALT key and enter 026 on the numeric keypad and release ALT key
any idea on how to do it with arduinos serial monitor?
Ron C where did you come across that information???
Doesn't matter because it worked.
kierin,
CTRL-Z is decimal 26 or 0x1A.
In Windows you can enter ASCII values using the numeric keypad (using the ALT key) with NumLock on.
I started X-CTU and clicked the HEX button in Terminal mode. When you enter ALT 0 2 6, hex 1A shows in the right hand panel indicating a CTRL-Z was entered.
Some CTRL keys can be entered directly but ones that Windows recognizes must be entered in different manner, e.g. CTRL-C, CTRL-V etc...
is there any way you can get an arduino to print this. EX) Serial.print("026"). That might just print that number how could you do this?
caseygross,
I'm not sure what you mean by printing "026" - these ASCII codes are not considered printable characters (although some programs will display various characters for values < 0x20).
An arduino can certainly use serial.print to send a hex value:
For example, I have several serial LCDs which use control codes and I use the NewSoftSerial library to send them:
#define lcdcmd 0xFE //command prefix
#define lcdcmd2 0x7C //special command prefix
#define clrLCD 0x01 //Clear entire LCD screen
#define displayOff 0x08 //Display off
#define displayOn 0x0C //Display on
#define noCurs 0x0C //Make cursor invisible
#define ulCurs 0x0E //Show underline cursor
#define blkCurs 0x0D //Show blinking block cursor
#define curpos 0x80 //set cursor + position (row 1=0 to 15, row 2 = 64 to 79)
#define scrollRight 0x1C
#define scrollLeft 0x18
#define curRight 0x14
#define curLeft 0x10
serLCD.begin(9600);
serLCD.print(lcdcmd, BYTE);
serLCD.print(displayOn , BYTE);
serLCD.print(lcdcmd, BYTE);
serLCD.print(clrLCD, BYTE);