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.
Fork of I2C-LCD by
Revision 0:376d7a150177, committed 2014-12-03
- Comitter:
- oscarvzfz
- Date:
- Wed Dec 03 03:48:48 2014 +0000
- Child:
- 1:93d8becc35f9
- Commit message:
- i2c lcd; ;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Wed Dec 03 03:48:48 2014 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/oscarvzfz/code/TextLCD/#d824a83e56e3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Dec 03 03:48:48 2014 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "TextLCD.h"
+//Incluye resistencias de 2.2K en los pines de i2c a 3.3
+
+
+
+// I2C Communication
+I2C i2c_lcd(p28,p27); // SDA, SCL
+
+TextLCD_I2C lcd(&i2c_lcd, 0x4E, TextLCD::LCD16x2, TextLCD::HD44780); // I2C bus, PCF8574 Slaveaddress, LCD Type, Device Type
+
+
+int main()
+{
+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");
+
+ }
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Dec 03 03:48:48 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file
