Christian Lerche
/
PCA9532
This program is for writing to PCA9532 on the LPCXpresso Base Board.
main.cpp@0:8dffae878f54, 2010-02-06 (annotated)
- Committer:
- Lerche
- Date:
- Sat Feb 06 06:32:14 2010 +0000
- Revision:
- 0:8dffae878f54
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Lerche | 0:8dffae878f54 | 1 | #include "PCA9532.h" // First try making header files. Maybe it works? |
Lerche | 0:8dffae878f54 | 2 | #include "mbed.h" |
Lerche | 0:8dffae878f54 | 3 | |
Lerche | 0:8dffae878f54 | 4 | PCA9532 LED(p28, p27, 0xC0); // sda, scl, addr |
Lerche | 0:8dffae878f54 | 5 | DigitalOut l1(LED1); |
Lerche | 0:8dffae878f54 | 6 | |
Lerche | 0:8dffae878f54 | 7 | int main() { |
Lerche | 0:8dffae878f54 | 8 | LED.write(LS0, 0x55); // Control register (First four LEDs) |
Lerche | 0:8dffae878f54 | 9 | wait(1); |
Lerche | 0:8dffae878f54 | 10 | l1=1; |
Lerche | 0:8dffae878f54 | 11 | } |