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.
Diff: main.cpp
- Revision:
- 0:fc452d25ab74
diff -r 000000000000 -r fc452d25ab74 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Jan 20 19:45:40 2015 +0000
@@ -0,0 +1,14 @@
+//program for control of misil
+#include "mbed.h"
+
+DigitalOut gpo(D0);
+DigitalOut led(LED_GREEN);
+
+int main()
+{
+ while (true) {
+ gpo = !gpo; // toggle pin
+ led = !led; // toggle led
+ wait(0.2f);
+ }
+}
\ No newline at end of file