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.
Dependencies: mbed
main.cpp@0:62a2e657a8b2, 2019-01-31 (annotated)
- Committer:
- thegecko
- Date:
- Thu Jan 31 18:51:16 2019 +0000
- Revision:
- 0:62a2e657a8b2
test
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| thegecko | 0:62a2e657a8b2 | 1 | #include "mbed.h" |
| thegecko | 0:62a2e657a8b2 | 2 | |
| thegecko | 0:62a2e657a8b2 | 3 | DigitalOut myled(LED1); |
| thegecko | 0:62a2e657a8b2 | 4 | |
| thegecko | 0:62a2e657a8b2 | 5 | int main() { |
| thegecko | 0:62a2e657a8b2 | 6 | |
| thegecko | 0:62a2e657a8b2 | 7 | while(1) { |
| thegecko | 0:62a2e657a8b2 | 8 | myled = 1; |
| thegecko | 0:62a2e657a8b2 | 9 | wait(0.2); |
| thegecko | 0:62a2e657a8b2 | 10 | myled = 0; |
| thegecko | 0:62a2e657a8b2 | 11 | wait(0.2); |
| thegecko | 0:62a2e657a8b2 | 12 | } |
| thegecko | 0:62a2e657a8b2 | 13 | } |