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:ec195ec905c7, 2020-03-08 (annotated)
- Committer:
- leaabelli
- Date:
- Sun Mar 08 05:23:13 2020 +0000
- Revision:
- 0:ec195ec905c7
start
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| leaabelli | 0:ec195ec905c7 | 1 | #include "mbed.h" |
| leaabelli | 0:ec195ec905c7 | 2 | |
| leaabelli | 0:ec195ec905c7 | 3 | DigitalOut myled(LED1); |
| leaabelli | 0:ec195ec905c7 | 4 | |
| leaabelli | 0:ec195ec905c7 | 5 | int main() { |
| leaabelli | 0:ec195ec905c7 | 6 | while(1) { |
| leaabelli | 0:ec195ec905c7 | 7 | myled = 1; |
| leaabelli | 0:ec195ec905c7 | 8 | wait(0.2); |
| leaabelli | 0:ec195ec905c7 | 9 | myled = 0; |
| leaabelli | 0:ec195ec905c7 | 10 | wait(0.2); |
| leaabelli | 0:ec195ec905c7 | 11 | } |
| leaabelli | 0:ec195ec905c7 | 12 | } |