Driver for a 128x64 pixels graphic LCD panel based on a KS0723 driver from Samsung.

Embed: (wiki syntax)

« Back to documentation index

LcdKs0723 Class Reference

LcdKs0723 Class Reference

LcdKs0723 class. More...

#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:
resetReset line
rsRS line
writeWrite line
readRead line
d0-d7Data 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:
columnThe horizontal position from the left, indexed from 0
rowThe 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:
formatA 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:
cThe character to write to the display