Simon Ford
/
PCF8574_HelloWorld
Hello World example for the PCF8574
Diff: main.cpp
- Revision:
- 0:c259a8e53a38
--- /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); + } +}