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:fc452d25ab74, 2015-01-20 (annotated)
- Committer:
- gllmotell
- Date:
- Tue Jan 20 19:45:40 2015 +0000
- Revision:
- 0:fc452d25ab74
bla bla
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| gllmotell | 0:fc452d25ab74 | 1 | //program for control of misil |
| gllmotell | 0:fc452d25ab74 | 2 | #include "mbed.h" |
| gllmotell | 0:fc452d25ab74 | 3 | |
| gllmotell | 0:fc452d25ab74 | 4 | DigitalOut gpo(D0); |
| gllmotell | 0:fc452d25ab74 | 5 | DigitalOut led(LED_GREEN); |
| gllmotell | 0:fc452d25ab74 | 6 | |
| gllmotell | 0:fc452d25ab74 | 7 | int main() |
| gllmotell | 0:fc452d25ab74 | 8 | { |
| gllmotell | 0:fc452d25ab74 | 9 | while (true) { |
| gllmotell | 0:fc452d25ab74 | 10 | gpo = !gpo; // toggle pin |
| gllmotell | 0:fc452d25ab74 | 11 | led = !led; // toggle led |
| gllmotell | 0:fc452d25ab74 | 12 | wait(0.2f); |
| gllmotell | 0:fc452d25ab74 | 13 | } |
| gllmotell | 0:fc452d25ab74 | 14 | } |