03,11,20196

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Martic
Date:
Thu Nov 03 19:54:31 2016 +0000
Commit message:
mjerenje

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
diff -r 000000000000 -r 72282788e800 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 03 19:54:31 2016 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+AnalogOut Aout(p18);
+float i;
+int main()
+{
+    while(1) {
+        for (i=0; i<1; i=i+0.01) {
+            Aout=i;
+            wait(0.001);
+        }
+    }
+
+{
+for (i=1; i>0; i=i-0.01) {
+            Aout=i;
+            wait(0.001);
+}
+}
+}
\ No newline at end of file
diff -r 000000000000 -r 72282788e800 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Nov 03 19:54:31 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9bcdf88f62b0
\ No newline at end of file