Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- henriquer
- Date:
- 2022-05-04
- Revision:
- 1:208b1069f0b1
- Parent:
- 0:376d7a150177
File content as of revision 1:208b1069f0b1:
#include "mbed.h"
#include "TextLCD.h"
//Incluye resistencias de 2.2K en los pines de i2c a 3.3
// I2C Communication
I2C i2c_lcd(D15,D14); // 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("HENRIQUE ROSA \n ");
}