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.
LcdKs0723 Class Reference
#include <LcdKs0723.h>
Public Member Functions | |
| LcdKs0723 (PinName reset, PinName rs, PinName write, PinName read, PinName d0, PinName d1, PinName d2, PinName d3, PinName d4, PinName d5, PinName d6, PinName d7) | |
| Create a LcdKs0723 interface. | |
| int | putc (int c) |
| Write a character to the LCD. | |
| int | printf (const char *format,...) |
| Write a formated string to the LCD. | |
| void | locate (int column, int row) |
| Locate to a screen column and row. | |
| void | cls () |
| Clear the screen and locate to 0,0. | |
Detailed Description
LcdKs0723 class.
Provides an interface compatible with other display libraries by Simon Ford on www.mbed.org.
Example:
#include "mbed.h" #include "LcdKs0723.h" LcdKs0723 lcd(p28, p10, p27, p19, p25, p15, p24, p16, p23, p17, p22, p18); int main() { lcd.printf("KS0723 LCD Display driver.\n"); lcd.printf("Float: %1.3f\n", 1.375f); lcd.printf("Hex: 0x%04X\n", 0xB12); while(1) { } }
Definition at line 56 of file LcdKs0723.h.
Constructor & Destructor Documentation
| LcdKs0723 | ( | PinName | reset, |
| PinName | rs, | ||
| PinName | write, | ||
| PinName | read, | ||
| PinName | d0, | ||
| PinName | d1, | ||
| PinName | d2, | ||
| PinName | d3, | ||
| PinName | d4, | ||
| PinName | d5, | ||
| PinName | d6, | ||
| PinName | d7 | ||
| ) |
Create a LcdKs0723 interface.
- Parameters:
-
reset Reset line rs RS line write Write line read Read line d0-d7 Data lines
Definition at line 30 of file LcdKs0723.cpp.
Member Function Documentation
| void cls | ( | ) |
Clear the screen and locate to 0,0.
Definition at line 129 of file LcdKs0723.cpp.
| void locate | ( | int | column, |
| int | row | ||
| ) |
Locate to a screen column and row.
- Parameters:
-
column The horizontal position from the left, indexed from 0 row The vertical position from the top, indexed from 0
Definition at line 120 of file LcdKs0723.cpp.
| int printf | ( | const char * | format, |
| ... | |||
| ) |
Write a formated string to the LCD.
- Parameters:
-
format A printf-style format string, followed by the variables to use in formating the string.
| int putc | ( | int | c ) |
Write a character to the LCD.
- Parameters:
-
c The character to write to the display
Generated on Fri Jul 15 2022 19:10:22 by
1.7.2