I2C LCD

Dependencies:   TextLCD mbed

Fork of I2C-LCD by Oscar de Jesus Vasquez

IIC-LCDisplay

here you can see my hardware: /media/uploads/schlaumaier54/dscn2996.jpg Detail with the IIC-Hardware: /media/uploads/schlaumaier54/dscn2994.jpg

And here a PDF dokument:

/media/uploads/schlaumaier54/iic_lcdisplays_mit_quellcode.pdf

Neumaier Feb. 2018

main.cpp

Committer:
oscarvzfz
Date:
2014-12-03
Revision:
0:376d7a150177
Child:
1:b51c02181e1c

File content as of revision 0:376d7a150177:

#include "mbed.h"
#include "TextLCD.h"
//Incluye resistencias de 2.2K en los pines de i2c a 3.3
 


// I2C Communication
I2C i2c_lcd(p28,p27); // SDA, SCL
 
TextLCD_I2C lcd(&i2c_lcd, 0x4E, TextLCD::LCD16x2, TextLCD::HD44780); // I2C bus, PCF8574 Slaveaddress, LCD Type, Device Type 


int main() 
{
lcd.setMode(TextLCD::DispOn); //DispOff, DispOn
lcd.setBacklight(TextLCD::LightOff);//LightOff, LightOn
lcd.setCursor(TextLCD::CurOff_BlkOff);//CurOff_BlkOff, CurOn_BlkOff, CurOff_BlkOn, CurOn_BlkOn
lcd.printf("Oscar de Jesus \n Vasquez");
 
 }