Miguel Urco / I2CLCD

Dependents:   JRO_CR2 frdm_test JRO_DDSv2 JRO_DDSv2_rev2019

Fork of I2CLCD by Suga koubou

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
void printf (const char *text, int x=0, int y=0)
 put character to LCD

Protected Member Functions

virtual int _getc ()
 get character from LCD

Detailed Description

I2CLCD class.

Definition at line 74 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 92 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 101 of file I2CLCD.cpp.


Member Function Documentation

int _getc (  ) [protected, virtual]

get character from LCD

Return values:
ASCIIcharacter code

Definition at line 81 of file I2CLCD.cpp.

void printf ( const char *  text,
int  x = 0,
int  y = 0 
)

put character to LCD

Parameters:
valueASCII character code
Return values:
value

Definition at line 24 of file I2CLCD.cpp.