Teste I2C

Dependencies:   mbed TextLCD

Files at this revision

API Documentation at this revision

Comitter:
henriquer
Date:
Wed May 04 13:44:34 2022 +0000
Parent:
0:376d7a150177
Commit message:
teste i2c

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Dec 03 03:48:48 2014 +0000
+++ b/main.cpp	Wed May 04 13:44:34 2022 +0000
@@ -5,7 +5,7 @@
 
 
 // I2C Communication
-I2C i2c_lcd(p28,p27); // SDA, SCL
+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 
 
@@ -15,6 +15,6 @@
 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");
+lcd.printf("HENRIQUE ROSA \n ");
  
  }
\ No newline at end of file