PCA9672 Library (I2C IO Expander Interface)
Simple output port toggling with PCA9672
#include "mbed.h" #include "PCA9672.h" PCA9672 ioxp(P0_10, P0_11); //I2C connected to PCA9672 in LPC800-MAX int main() { ioxp.frequency(100000); while (1) { ioxp.write(0xFF); wait(.250); ioxp.write(0x00); wait(.250); } }
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
0:27125e4cf941 | 2013-09-21 | viswesr | PCA9672 Library (I2C IO Expander Interface) : First version |