Fernando Morales / Mbed 2 deprecated I2C_1_B

Dependencies:   mbed

main.cpp

Committer:
fernando_moraless
Date:
2022-04-25
Revision:
1:b2c40f461dbd
Parent:
0:824096cc05af
Child:
2:b2512ade96de

File content as of revision 1:b2c40f461dbd:

#include "mbed.h"
#include <LiquidCrystal_I2C.h>

// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x4E, 16, 2);



int main()
{
 
    // initialize the LCD
    lcd.begin();

    // Turn on the blacklight and print a message.
    lcd.backlight();
    lcd.print("Hello, world!");
    
    while (1) 
    {
       
    }
 
}