Chris Styles
/
EA_PCA9532_HelloWorld
Simple Hello World for the PCA9532 on the Embedded Artists Baseboard
main.cpp@1:bd3f6bfeebac, 2010-05-07 (annotated)
- Committer:
- chris
- Date:
- Fri May 07 12:40:00 2010 +0000
- Revision:
- 1:bd3f6bfeebac
- Parent:
- 0:deb3f7947394
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 0:deb3f7947394 | 1 | #include "mbed.h" |
chris | 1:bd3f6bfeebac | 2 | #include "PCA9532.h" |
chris | 0:deb3f7947394 | 3 | |
chris | 1:bd3f6bfeebac | 4 | PCA9532 leds (p28, p27, 0xc0); |
chris | 0:deb3f7947394 | 5 | |
chris | 0:deb3f7947394 | 6 | int main() { |
chris | 0:deb3f7947394 | 7 | |
chris | 1:bd3f6bfeebac | 8 | while (1) { |
chris | 1:bd3f6bfeebac | 9 | leds.SetLed(0xffff, MODE_ON); |
chris | 1:bd3f6bfeebac | 10 | wait (0.2); |
chris | 1:bd3f6bfeebac | 11 | leds.SetLed(0xffff, MODE_OFF); |
chris | 1:bd3f6bfeebac | 12 | wait (0.2); |
chris | 1:bd3f6bfeebac | 13 | } |
chris | 0:deb3f7947394 | 14 | |
chris | 0:deb3f7947394 | 15 | } |