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.
Revision 0:fda63c378168, committed 2018-12-03
- Comitter:
- StefanoArrigoni
- Date:
- Mon Dec 03 14:12:34 2018 +0000
- Commit message:
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Mon Dec 03 14:12:34 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/CorsoSTM32/code/TextLCD/#b4ec0bc9d921
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Dec 03 14:12:34 2018 +0000
@@ -0,0 +1,38 @@
+/****************************************************
+* FAST PROTOTYPING WITH NUCLEO *
+* Example Code 05: LCDdisplay *
+* Author: Mauro D'Angelo *
+*****************************************************/
+
+#include "mbed.h"
+#include "TextLCD.h"
+
+// PCF8574T
+#define SLAVEADDRESS 0x4E
+//PCF8574AT
+//#define SLAVEADDRESS 0x7E
+
+// Instanzia un oggetto I2C assegnando i du 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
+TextLCD_I2C lcd(&i2c_lcd,SLAVEADDRESS, TextLCD::LCD16x2); // I2C exp: I2C bus, PCF8574AT Slaveaddress, LCD Type
+
+//0x7e,
+int main() {
+ // Spegne il cursore
+ lcd.setCursor(TextLCD::CurOff_BlkOff);
+
+ // Pulisce lo schermo
+ lcd.cls();
+
+ // Stampa sullo schermo
+ lcd.printf(" Welcome to");
+
+ // punta alla prima colonna del secondo rigo del display
+ lcd.setAddress(0, 1);
+
+ // Stampa sullo schermo
+ lcd.printf("LCD display demo");
+ wait(2);
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Dec 03 14:12:34 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc \ No newline at end of file