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.
Dependencies: mbed GroveColourSensor
main.cpp@2:b630732e3f11, 2016-04-05 (annotated)
- Committer:
- janjongboom
- Date:
- Tue Apr 05 10:44:59 2016 +0000
- Revision:
- 2:b630732e3f11
- Parent:
- 1:9bb077bbb64b
- Child:
- 3:a1544d54358a
Blue is better
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| janjongboom | 0:7d3b6132c627 | 1 | #include "mbed.h" |
| janjongboom | 0:7d3b6132c627 | 2 | |
| janjongboom | 2:b630732e3f11 | 3 | DigitalOut led(LED_BLUE); |
| janjongboom | 0:7d3b6132c627 | 4 | |
| janjongboom | 0:7d3b6132c627 | 5 | int main() |
| janjongboom | 0:7d3b6132c627 | 6 | { |
| janjongboom | 0:7d3b6132c627 | 7 | while (true) { |
| janjongboom | 0:7d3b6132c627 | 8 | led = !led; // toggle led |
| janjongboom | 0:7d3b6132c627 | 9 | wait(0.2f); |
| janjongboom | 0:7d3b6132c627 | 10 | } |
| Jan Jongboom |
1:9bb077bbb64b | 11 | } |