Rune Langoy / LCDLib

Dependents:   KS0066U4_16x2 LAB05_Oppgave4 LAB05_Oppgave2 LAB05_Oppgave3 ... more

Files at this revision

API Documentation at this revision

Comitter:
rlanghbv
Date:
Tue Sep 22 08:10:46 2015 +0000
Parent:
17:5ffb16966db2
Child:
19:241842336d78
Commit message:
writeLcdBitD4toD7 placed as a protected function

Changed in this revision

TextLCD.h Show annotated file Show diff for this revision Revisions of this file
--- a/TextLCD.h	Mon Sep 21 10:17:51 2015 +0000
+++ b/TextLCD.h	Tue Sep 22 08:10:46 2015 +0000
@@ -75,12 +75,6 @@
     TextLCD(PinName rs,PinName rw, PinName e, PinName d4, PinName d5,
             PinName d6, PinName d7,const char* name=NULL) ;
 
-    /**  Writes the low nible of data to the LCD-module
-      *
-      * @param data  Writes the low-nible to the LCD data pins D4 to D7
-      */
-    void writeLcdBitD4toD7(char data);
-
     /**  Writes a Command to the LCD-module
      *
      * @param cmd command to be sendt to the LCD-Controller
@@ -115,13 +109,18 @@
     int printf(const char* format, ...);
 #endif
 protected:
+    /**  Writes the low nible of data to the LCD-module
+      *
+      * @param data  Writes the low-nible to the LCD data pins D4 to D7
+      */
+    void writeLcdBitD4toD7(char data);
+
     // EN = 1 for L-to-H /
     // EN = 0 for H-to-L
     // Causes the LCD-module to read the data on the data input pins
     void pulseEn();
     //Enable 4 bit mode  From KS0066U Documentation
     void init_4BitMode2LinesDisplayOn();
-
     // Stream implementation functions
     virtual int _putc(int value);
     virtual int _getc();