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.
Test_BLINKY.cpp@1:1d8f913f704d, 2020-09-27 (annotated)
- Committer:
- daveross
- Date:
- Sun Sep 27 16:23:28 2020 +0000
- Revision:
- 1:1d8f913f704d
Test of MCUXPRESSO
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
daveross | 1:1d8f913f704d | 1 | #include "mbed.h" |
daveross | 1:1d8f913f704d | 2 | DigitalOut red_led(LED1); |
daveross | 1:1d8f913f704d | 3 | |
daveross | 1:1d8f913f704d | 4 | int main(void) |
daveross | 1:1d8f913f704d | 5 | { |
daveross | 1:1d8f913f704d | 6 | red_led=1; |
daveross | 1:1d8f913f704d | 7 | |
daveross | 1:1d8f913f704d | 8 | for(;;) |
daveross | 1:1d8f913f704d | 9 | { |
daveross | 1:1d8f913f704d | 10 | red_led=0; |
daveross | 1:1d8f913f704d | 11 | wait_ms(500); // wait .5 seconds |
daveross | 1:1d8f913f704d | 12 | red_led=1; |
daveross | 1:1d8f913f704d | 13 | wait_ms(500); // wait .5 seconds |
daveross | 1:1d8f913f704d | 14 | } |
daveross | 1:1d8f913f704d | 15 | } |