Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 | } |