Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of 4DGL-uLCD-SE by
Diff: uLCD_4DGL_Text.cpp
- Revision:
- 5:8936798c19a3
- Parent:
- 2:edae99e4abe7
- Child:
- 7:e39a44de229a
--- a/uLCD_4DGL_Text.cpp Wed Nov 20 03:25:53 2013 +0000
+++ b/uLCD_4DGL_Text.cpp Fri Nov 22 02:44:37 2013 +0000
@@ -67,6 +67,8 @@
writeCOMMAND(command, 3);
}
+
+
//****************************************************************************************************
void uLCD_4DGL :: text_mode(char mode) // set text mode
{
@@ -80,6 +82,42 @@
}
//****************************************************************************************************
+void uLCD_4DGL :: text_bold(char mode) // set text mode
+{
+ char command[3]= "";
+
+ command[0] = TEXTBOLD;
+ command[1] = 0;
+ command[2] = mode;
+
+ writeCOMMAND(command, 3);
+}
+
+//****************************************************************************************************
+void uLCD_4DGL :: text_italic(char mode) // set text mode
+{
+ char command[3]= "";
+
+ command[0] = TEXTITALIC;
+ command[1] = 0;
+ command[2] = mode;
+
+ writeCOMMAND(command, 3);
+}
+
+//****************************************************************************************************
+void uLCD_4DGL :: text_inverse(char mode) // set text mode
+{
+ char command[3]= "";
+
+ command[0] = TEXTINVERSE;
+ command[1] = 0;
+ command[2] = mode;
+
+ writeCOMMAND(command, 3);
+}
+
+//****************************************************************************************************
void uLCD_4DGL :: text_width(char width) // set text width
{
char command[3]= "";
