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.
Diff: main.cpp
- Revision:
- 0:2046e5bfc62d
diff -r 000000000000 -r 2046e5bfc62d main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Dec 25 15:28:38 2014 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "PCF2119.h"
+
+DigitalOut myled(LED1);
+
+I2C i2c(p9, p10);
+PCF2119 lcd(i2c, p11);
+//PCF2119 lcd(p9, p10, p11);
+
+int main() {
+ int i = 0;
+
+ lcd.cls();
+ lcd.printf("Hello World");
+
+ while(1) {
+ lcd.locate(0, 1);
+ lcd.printf("%d", i);
+ i ++;
+ myled = !myled;
+ wait(0.5);
+ }
+}
PCF2119x