Christian Lerche
/
PCA9532
This program is for writing to PCA9532 on the LPCXpresso Base Board.
Diff: main.cpp
- Revision:
- 0:8dffae878f54
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Feb 06 06:32:14 2010 +0000 @@ -0,0 +1,11 @@ +#include "PCA9532.h" // First try making header files. Maybe it works? +#include "mbed.h" + +PCA9532 LED(p28, p27, 0xC0); // sda, scl, addr +DigitalOut l1(LED1); + +int main() { + LED.write(LS0, 0x55); // Control register (First four LEDs) + wait(1); + l1=1; +} \ No newline at end of file