A TextLCD interface for driving 4-bit 16x2 KS0066U LCD
Dependents: KS0066U4_16x2 LAB05_Oppgave4 LAB05_Oppgave2 LAB05_Oppgave3 ... more
Import library
Public Member Functions |
|
TextLCD (PinName rs, PinName rw, PinName e, PinName d4, PinName d5, PinName d6, PinName d7, const char *name=NULL) | |
Create a
TextLCD
interface and initiated 16x2 char mode.
|
|
void | lcdComand (unsigned char cmd) |
Writes a Command to the LCD-module.
|
|
void | lcdData (unsigned char data) |
Writes charecters to the LCD display.
|
|
void | gotoxy (int, int) |
moves text cursor to a screen column and row
|
|
int | putc (int c) |
Write a character to the LCD.
|
|
int | printf (const char *format,...) |
Write a formatted string to the LCD.
|
|
Protected Member Functions |
|
void | writeLcdBitD4toD7 (char data) |
Writes the low nible of data to the LCD-module.
|
|
void | pulseEn () |
Causes the LCD-module to read the data on the data input pins EN = 1 for L-to-H / EN = 0 for H-to-L.
|
|
void | init_4BitMode2LinesDisplayOn () |
Enable 4 bit mode From KS0066U Documentation.
|
Diff: TextLCD.h
- Revision:
- 12:296a9b15ecd1
- Parent:
- 11:0af18f5aa473
- Child:
- 13:76853cda9655
diff -r 0af18f5aa473 -r 296a9b15ecd1 TextLCD.h --- a/TextLCD.h Sun Sep 20 17:07:11 2015 +0000 +++ b/TextLCD.h Sun Sep 20 17:08:38 2015 +0000 @@ -35,7 +35,7 @@ * lcd.printf("Hello"); * * lcd.gotoxy(1,2); - * lcd.printf(" World"); + * lcd.printf(" World"); * * while(1) { * wait_ms(300); @@ -55,7 +55,6 @@ * @param e Enable line (clock) * @param d4-d7 Data lines for using as a 4-bit interface * @param name I/O stream name (Optional) - * * Stream example: * @code * #include "mbed.h"