character LCD module to I2C adapter http://mbed.org/users/okini3939/notebook/i2c-lcd-library/

Dependents:   i2clcd_lib WeatherPlatform_20110408 WeatherPlatform WeatherStation ... more

Embed: (wiki syntax)

« Back to documentation index

I2CLCD Class Reference

I2CLCD class. More...

#include <I2CLCD.h>

Public Member Functions

 I2CLCD (PinName p_sda, PinName p_scl, int p_i2caddr=I2CLCD_ADDR, I2CLCDType p_type=LCD16x2, I2CLCDConfig p_config=LCDCFG_3V)
 put character to LCD
 I2CLCD (I2C &p_i2c, int p_i2caddr=I2CLCD_ADDR, I2CLCDType p_type=LCD16x2, I2CLCDConfig p_config=LCDCFG_3V)
 put character to LCD

Protected Member Functions

virtual int _putc (int)
 put character to LCD
virtual int _getc ()
 get character from LCD

Detailed Description

I2CLCD class.

Definition at line 53 of file I2CLCD.h.


Constructor & Destructor Documentation

I2CLCD ( PinName  p_sda,
PinName  p_scl,
int  p_i2caddr = I2CLCD_ADDR,
I2CLCDType  p_type = LCD16x2,
I2CLCDConfig  p_config = LCDCFG_3V 
)

put character to LCD

Parameters:
p_sdaport of I2C SDA
p_sclport of I2C SCL
p_i2caddrI2C address

Definition at line 66 of file I2CLCD.cpp.

I2CLCD ( I2C &  p_i2c,
int  p_i2caddr = I2CLCD_ADDR,
I2CLCDType  p_type = LCD16x2,
I2CLCDConfig  p_config = LCDCFG_3V 
)

put character to LCD

Parameters:
p_i2cinstance of I2C class
p_i2caddrI2C address

Definition at line 75 of file I2CLCD.cpp.


Member Function Documentation

int _getc (  ) [protected, virtual]

get character from LCD

Return values:
ASCIIcharacter code

Definition at line 55 of file I2CLCD.cpp.

int _putc ( int  value ) [protected, virtual]

put character to LCD

Parameters:
valueASCII character code
Return values:
value

Definition at line 23 of file I2CLCD.cpp.