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:0ab9e89718d7
diff -r 000000000000 -r 0ab9e89718d7 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Sep 26 12:23:39 2017 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+void blink3(float F, float d);
+
+int main()
+{
+int n = 20;
+ while(n > 0) {
+ blink3(2.0, 0.4);
+ n--;
+ }
+ return 0;
+}
+
+//funksjoner
+void blink3(float F, float d){
+ float Tp = d/F;
+ float Ta = (1-d)/F;
+ myled = 1;
+ wait(Tp);
+ myled = 0;
+ wait(Ta);
+ }//blink3
+
+
+
+