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:cb390b602eb0, 2017-12-07 (annotated)
- Committer:
- Nachum
- Date:
- Thu Dec 07 03:50:23 2017 +0000
- Revision:
- 0:cb390b602eb0
My first project
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Nachum | 0:cb390b602eb0 | 1 | #include "mbed.h" |
| Nachum | 0:cb390b602eb0 | 2 | |
| Nachum | 0:cb390b602eb0 | 3 | DigitalOut led(PC_8); |
| Nachum | 0:cb390b602eb0 | 4 | |
| Nachum | 0:cb390b602eb0 | 5 | int main() |
| Nachum | 0:cb390b602eb0 | 6 | { |
| Nachum | 0:cb390b602eb0 | 7 | while(1) |
| Nachum | 0:cb390b602eb0 | 8 | { |
| Nachum | 0:cb390b602eb0 | 9 | led = !led; |
| Nachum | 0:cb390b602eb0 | 10 | wait(0.2); |
| Nachum | 0:cb390b602eb0 | 11 | } |
| Nachum | 0:cb390b602eb0 | 12 | } |