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:ae2c0cbd71a3, 2021-12-21 (annotated)
- Committer:
- t00221592
- Date:
- Tue Dec 21 10:06:56 2021 +0000
- Revision:
- 0:ae2c0cbd71a3
T00221592 Winter Lab 1
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| t00221592 | 0:ae2c0cbd71a3 | 1 | #include "mbed.h" |
| t00221592 | 0:ae2c0cbd71a3 | 2 | |
| t00221592 | 0:ae2c0cbd71a3 | 3 | DigitalOut myled(LED1); |
| t00221592 | 0:ae2c0cbd71a3 | 4 | |
| t00221592 | 0:ae2c0cbd71a3 | 5 | int main() { |
| t00221592 | 0:ae2c0cbd71a3 | 6 | while(1) { |
| t00221592 | 0:ae2c0cbd71a3 | 7 | myled = 1; |
| t00221592 | 0:ae2c0cbd71a3 | 8 | wait(0.2); |
| t00221592 | 0:ae2c0cbd71a3 | 9 | myled = 0; |
| t00221592 | 0:ae2c0cbd71a3 | 10 | wait(0.2); |
| t00221592 | 0:ae2c0cbd71a3 | 11 | } |
| t00221592 | 0:ae2c0cbd71a3 | 12 | } |