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:27a7bfa6a6ec, 2019-01-07 (annotated)
- Committer:
- sowndharya
- Date:
- Mon Jan 07 06:35:51 2019 +0000
- Revision:
- 0:27a7bfa6a6ec
d
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sowndharya | 0:27a7bfa6a6ec | 1 | #include "mbed.h" |
sowndharya | 0:27a7bfa6a6ec | 2 | |
sowndharya | 0:27a7bfa6a6ec | 3 | DigitalOut myled(LED1); |
sowndharya | 0:27a7bfa6a6ec | 4 | |
sowndharya | 0:27a7bfa6a6ec | 5 | int main() { |
sowndharya | 0:27a7bfa6a6ec | 6 | while(1) { |
sowndharya | 0:27a7bfa6a6ec | 7 | myled = 1; |
sowndharya | 0:27a7bfa6a6ec | 8 | wait(0.2); |
sowndharya | 0:27a7bfa6a6ec | 9 | myled = 0; |
sowndharya | 0:27a7bfa6a6ec | 10 | wait(0.2); |
sowndharya | 0:27a7bfa6a6ec | 11 | } |
sowndharya | 0:27a7bfa6a6ec | 12 | } |