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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 3:dbe3618192cd
- Parent:
- 2:78d57ebcfc3d
--- 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