Muris Nuhodžić Hamdija Sinanović

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tim010
Date:
Thu Mar 06 16:39:04 2014 +0000
Commit message:
Muris Nuhod?i?; Hamdija Sinanovi?

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Mar 06 16:39:04 2014 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+
+DigitalOut myled(LED1);
+
+int main() {
+  float x = 0.005;
+  int znak = 1;
+  while(1) {
+    myled = 0;
+    wait(x);
+    myled = 1;
+    wait(0.01-x);
+    if((x <= 0.0001) || (x >= 0.0099)) znak *= -1;
+    x += znak*(0.0049/199);
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Mar 06 16:39:04 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1
\ No newline at end of file