tttt / Mbed 2 deprecated STMNucleoF401RE_ExampleCode_05_LCD

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Emilio91
Date:
Tue Mar 13 17:52:11 2018 +0000
Parent:
2:78d57ebcfc3d
Commit message:
Niente

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 02 13:53:31 2015 +0000
+++ b/main.cpp	Tue Mar 13 17:52:11 2018 +0000
@@ -8,12 +8,13 @@
 #include "mbed.h"
 #include "TextLCD.h"
 
+
 // PCF8574T
-#define SLAVEADDRESS 0x4E 
+//#define SLAVEADDRESS 0x4E 
 //PCF8574AT
-//#define SLAVEADDRESS 0x7E
+#define SLAVEADDRESS 0x7E
 
-// Instanzia un oggetto I2C assegnando i du pin SDA ed SCL
+// Instanzia un oggetto I2C assegnando i due pin SDA ed SCL
 I2C i2c_lcd(PB_9,PB_8); // SDA, SCL
 
 // Instanzia un oggetto TextLCD_I2C per la gestione del display via I2Cbus
@@ -28,12 +29,12 @@
     lcd.cls();
     
     // Stampa sullo schermo
-    lcd.printf("   Welcome to");
+    lcd.printf("LCD:");
     
     // punta alla prima colonna del secondo rigo del display
     lcd.setAddress(0, 1);
     
     // Stampa sullo schermo
-    lcd.printf("LCD display demo");
+    lcd.printf("FUNZIONAAAA");
     wait(2);
 }
\ No newline at end of file