The code that I needed for the CCS compiler was;
//clear screen
printf("%c",254);
printf("%c",88 );
As I understand it, the %c sends the raw code.
Also if you want to place the cursor;
//place cursor
printf("%c",254);
printf("%c",71);
printf("%c",3);
printf("%c",3);
This would place ...
Search found 3 matches
- Mon Nov 08, 2010 3:25 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Place cursor and clear screen using RS-232
- Replies: 3
- Views: 7093
- Mon Nov 08, 2010 11:51 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Place cursor and clear screen using RS-232
- Replies: 3
- Views: 7093
- Mon Nov 08, 2010 10:27 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Place cursor and clear screen using RS-232
- Replies: 3
- Views: 7093
Place cursor and clear screen using RS-232
I am using the PIC 16F877A to control the GLC24064 V2.0 and I am able to write to the LCD with the following program but the command to clear the screen and place the cursor does not work. The program is below and produces the following on the LCD;
feXfeHABCDEFGHIJKLMNOPQRSTUVWXYZ
and will wrap ...
feXfeHABCDEFGHIJKLMNOPQRSTUVWXYZ
and will wrap ...