I'm working with the code below which works fine as it is. The last two arguments in the SerOut command translate as follows...
254 = Switch LCD to "Instruction Mode"
192 = Print the next Rx data to Line 2 starting at position 1.
I would like to replace 254, 192 with a Symbol (NewLine) but no matter how I've structured my code I either get a syntax error or it simply doesn't print to line 2. Before anyone replies with why not use "CrLF" the answer is simple. The LCD doesn't recognize that instruction. It has it's own instruction set, so 254,192 must be used.
Thanks,
Chris
254 = Switch LCD to "Instruction Mode"
192 = Print the next Rx data to Line 2 starting at position 1.
I would like to replace 254, 192 with a Symbol (NewLine) but no matter how I've structured my code I either get a syntax error or it simply doesn't print to line 2. Before anyone replies with why not use "CrLF" the answer is simple. The LCD doesn't recognize that instruction. It has it's own instruction set, so 254,192 must be used.
Thanks,
Chris
Code:
; Function: Tx serial data to MILFORD-2X16-BKP serial LCD
; Last Revision:
; Target PICAXE: 08M2
; *******************************
Main:
Wait 1
SerOut C.1,T2400,("Line Number 1", 254, 192) ;Prints to Line 1
Wait 1
SerOut C.1,T2400,("Line number 2") ; Prints to Line 2
End