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:25f263c526a9
diff -r 000000000000 -r 25f263c526a9 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri May 12 20:25:56 2017 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+
+#include "mbed.h"
+void led_switch(void);
+Ticker time_up;
+DigitalOut myled(D7);
+
+void led_switch() {
+ //myled=!myled;
+ //printf("hello");
+}
+
+int main(){
+
+ while(1){
+ time_up.attach(&led_switch, 2.0);
+ printf("hello\n");
+ //while(true) {
+
+ wait(3);
+ //}
+ }
+ }
+
+
+
+