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.
|
Revisions of TextLCD.cpp
Revision | Date | Message | Actions |
---|---|---|---|
15:dc4f024fd1aa | 2015-09-20 | Default constructor fixup | File Diff Annotate |
10:8d5383e2546e | 2015-09-20 | Warning fix/ Code Cleanup | File Diff Annotate |
9:9529e943259c | 2015-09-20 | Added parameter for stream naming in the constructor | File Diff Annotate |
8:b12188ddd403 | 2015-09-20 | Code cleanup DigitalOut replaced by BusOut | File Diff Annotate |
5:d9eb6ed84a06 | 2015-09-20 | Code cleanup | File Diff Annotate |
4:264d9b06bf60 | 2015-09-20 | Doc Update | File Diff Annotate |
3:d2f70de20dbe | 2015-09-20 | Added constutcor width pin-names | File Diff Annotate |
2:f0a520c95838 | 2015-09-20 | gotoxy changed params to int | File Diff Annotate |
1:8902f6be12a5 | 2015-09-20 | Changed to .cpp class lib | File Diff Annotate |