Jack Hansdampf / LCD_i2c_GSOE

Dependents:   DigitaleingabeBluetooth_TI4 Temperatursever_TI4 BelueftungMitDS1820 ZustandCodeschloss ... more

Embed: (wiki syntax)

« Back to documentation index

lcd Class Reference

lcd Class Reference

Verwendet SoftwareI2C von: mbed Library to use a software master i2c interface on any GPIO pins Copyright (c) 2012 Christopher Pepper Released under the MIT License: http://mbed.org/license/mit. More...

#include <LCD.h>

Public Member Functions

 lcd (void)
 Create LCD Instance.
void clear (void)
 löscht das Display
void cursorpos (uint8_t pos)
 Positioniert den Cursor.
int printf (const char *format,...)
 Print formattet.
void locate (int column, int row)
 Locate to a screen column and row.
void cls ()
 Clear the screen and locate to 0,0.
void putc (int c)
 Write a character to the LCD.

Detailed Description

Verwendet SoftwareI2C von: mbed Library to use a software master i2c interface on any GPIO pins Copyright (c) 2012 Christopher Pepper Released under the MIT License: http://mbed.org/license/mit.

Example:

 #include "LCD.h"

 lcd myLCD;
 int main() {  
     int x=0;
     myLCD.clear();
     myLCD.cursorpos(0);
     myLCD.printf("x=%d",x);
     while(1)  {
     }
 }

Definition at line 27 of file LCD.h.


Constructor & Destructor Documentation

lcd ( void   )

Create LCD Instance.

Definition at line 3 of file LCD.cpp.


Member Function Documentation

void clear ( void   )

löscht das Display

Definition at line 12 of file LCD.cpp.

void cls (  )

Clear the screen and locate to 0,0.

Definition at line 31 of file LCD.cpp.

void cursorpos ( uint8_t  pos )

Positioniert den Cursor.

Parameters:
pos0.. 0xF 1. Zeile, 0x40..0x4F 2. Zeile

Definition at line 92 of file LCD.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 21 of file LCD.cpp.

int printf ( const char *  format,
  ... 
)

Print formattet.

Parameters:
*formatFormatstring
...Variablenliste

Definition at line 134 of file LCD.cpp.

void putc ( int  c )

Write a character to the LCD.

Parameters:
cThe character to write to the display

Definition at line 26 of file LCD.cpp.