Hello World example for the PCF8574

Dependencies:   mbed PCF8574

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "PCF8574.h"
00003 
00004 PCF8574 io(p9,p10,0x20);
00005 
00006 int main() {
00007     while(1) {
00008         io.write(0x0);
00009         wait(0.2);
00010         io.write(0xF);
00011         wait(0.2);
00012     }
00013 }