LCD MANGUE BAJA DANILLO AGUIAR

Dependencies:   mbed-STM32F103C8T6 TextLCD

Committer:
danilloaguiar
Date:
Wed Jul 24 18:56:28 2019 +0000
Revision:
0:2f38376349e5
LCD MANGUE BAJA DANILLO AGUIAR

Who changed what in which revision?

UserRevisionLine numberNew contents of line
danilloaguiar 0:2f38376349e5 1 #include "stm32f103c8t6.h"
danilloaguiar 0:2f38376349e5 2 #include "mbed.h"
danilloaguiar 0:2f38376349e5 3 #include "TextLCD.h"
danilloaguiar 0:2f38376349e5 4
danilloaguiar 0:2f38376349e5 5 DigitalOut myled(PC_13);
danilloaguiar 0:2f38376349e5 6
danilloaguiar 0:2f38376349e5 7
danilloaguiar 0:2f38376349e5 8 // I2C Communication
danilloaguiar 0:2f38376349e5 9 I2C i2c_lcd(PB_9, PB_8); // SDA, SCL
danilloaguiar 0:2f38376349e5 10
danilloaguiar 0:2f38376349e5 11 TextLCD_I2C lcd(&i2c_lcd, 0x4E, TextLCD::LCD16x2, TextLCD::HD44780); // I2C bus, PCF8574 Slaveaddress, LCD Type, Device Type
danilloaguiar 0:2f38376349e5 12
danilloaguiar 0:2f38376349e5 13
danilloaguiar 0:2f38376349e5 14 int main()
danilloaguiar 0:2f38376349e5 15 {
danilloaguiar 0:2f38376349e5 16 lcd.setMode(TextLCD::DispOn); //DispOff, DispOn
danilloaguiar 0:2f38376349e5 17 lcd.setBacklight(TextLCD::LightOff);//LightOff, LightOn
danilloaguiar 0:2f38376349e5 18 lcd.setCursor(TextLCD::CurOff_BlkOff);//CurOff_BlkOff, CurOn_BlkOff, CurOff_BlkOn, CurOn_BlkOn
danilloaguiar 0:2f38376349e5 19 lcd.printf("123456789123456789");
danilloaguiar 0:2f38376349e5 20 }