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@0:66a527592d26, 2022-03-21 (annotated)
- Committer:
- nsejim
- Date:
- Mon Mar 21 15:02:43 2022 +0000
- Revision:
- 0:66a527592d26
Changed sleep time from 500 ms to 5000ms
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| nsejim | 0:66a527592d26 | 1 | #include "mbed.h" |
| nsejim | 0:66a527592d26 | 2 | |
| nsejim | 0:66a527592d26 | 3 | DigitalOut led(LED1); |
| nsejim | 0:66a527592d26 | 4 | |
| nsejim | 0:66a527592d26 | 5 | int main() { |
| nsejim | 0:66a527592d26 | 6 | while (1) { |
| nsejim | 0:66a527592d26 | 7 | led = !led; |
| nsejim | 0:66a527592d26 | 8 | printf("Blink! LED is now %d\n", led.read()); |
| nsejim | 0:66a527592d26 | 9 | |
| nsejim | 0:66a527592d26 | 10 | wait_ms(5000); |
| nsejim | 0:66a527592d26 | 11 | } |
| nsejim | 0:66a527592d26 | 12 | } |