Hello World example for the PCF8574
Dependencies:
mbed
PCF8574
main.cpp
- Committer:
- simon
- Date:
- 2010-06-03
- Revision:
- 0:c259a8e53a38
File content as of revision 0:c259a8e53a38:
#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);
}
}