TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface

Dependents:   DisplayDriver

Fork of TextLCD by Simon Ford

Revision:
9:8ba443e7fdca
Parent:
8:308d188a2d3a
--- a/TextLCD.h	Thu Jan 02 21:07:01 2014 +0000
+++ b/TextLCD.h	Tue Apr 25 20:10:03 2017 +0000
@@ -32,15 +32,16 @@
  * @code
  * #include "mbed.h"
  * #include "TextLCD.h"
- * 
+ *
  * TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d4-d7
- * 
+ *
  * int main() {
  *     lcd.printf("Hello World!\n");
  * }
  * @endcode
  */
-class TextLCD : public Stream {
+class TextLCD : public Stream
+{
 public:
 
     /** LCD panel format */
@@ -85,6 +86,13 @@
     /** Clear the screen and locate to 0,0 */
     void cls();
 
+    /** Defines a custom character bitmap
+     *
+     * @param index The index of the custom character slot (0-7)
+     * @param data  Array of 8 bytes defining the custom character.
+     */
+    void defineChar(int index, char *data);
+
     int rows();
     int columns();
 
@@ -108,4 +116,4 @@
     int _row;
 };
 
-#endif
+#endif
\ No newline at end of file