Hello World example for the PCF8574

Dependencies:   mbed PCF8574

Files at this revision

API Documentation at this revision

Comitter:
simon
Date:
Thu Jun 03 13:02:05 2010 +0000
Commit message:

Changed in this revision

PCF8574.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r c259a8e53a38 PCF8574.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PCF8574.lib	Thu Jun 03 13:02:05 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/PCF8574/#ec8da0c59403
diff -r 000000000000 -r c259a8e53a38 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jun 03 13:02:05 2010 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+#include "PCF8574.h"
+
+PCF8574 io(p9,p10,0x20);
+
+int main() {
+    while(1) {
+        io.write(0x0);
+        wait(0.2);
+        io.write(0xF);
+        wait(0.2);
+    }
+}
diff -r 000000000000 -r c259a8e53a38 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jun 03 13:02:05 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/029aa53d7323