Amra Dautbegovic Elma Gazetic

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tim003
Date:
Mon Mar 31 16:48:02 2014 +0000
Commit message:
LV5_PAI_Grupa4_Tim003_Zadatak_1

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 251bd641d619 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 31 16:48:02 2014 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "math.h"
+#define PI 3.14159265358
+
+
+AnalogOut ispis(PTE30);
+float step=0.0002;
+Ticker t;
+int freq(100);
+int x=0;
+
+void PodignutiSinus() {
+
+ispis=0.5+ 0.5* sin (2*PI*freq*step*x);
+
+    x++;
+    if (x>50) x=0;
+}
+
+
+int main() 
+{
+    t.attach_us(&PodignutiSinus, 200);
+}
diff -r 000000000000 -r 251bd641d619 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 31 16:48:02 2014 +0000
@@ -0,0 +1,1 @@
+http://world3.dev.mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43
\ No newline at end of file