Granulo Eldar Mehanovic Adnan

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tim003
Date:
Mon Mar 31 09:18:45 2014 +0000
Commit message:
PAI_LV5_GRUPA2_TIM003

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 4662d250bc92 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 31 09:18:45 2014 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include <cmath>
+
+AnalogOut oscilloscope(PTE30);
+double function(double x)
+{
+    return sin(x) / 2 + 0.5;
+}
+
+int main()
+{
+    while(1) {
+        for (double i = 0; i < 6.28; i += 0.0628) {
+            oscilloscope = function (i) / 3.3;
+            wait_us(15);
+        }
+    }
+}
diff -r 000000000000 -r 4662d250bc92 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 31 09:18:45 2014 +0000
@@ -0,0 +1,1 @@
+http://world3.dev.mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43
\ No newline at end of file