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);
    }

}

History

PCA9672 Library (I2C IO Expander Interface) : First version default tip

2013-09-21, by viswesr [Sat, 21 Sep 2013 05:28:44 +0000] rev 0

PCA9672 Library (I2C IO Expander Interface) : First version