Haris Custovic Ediba di Zugor

Dependencies:   mbed

Revision:
0:93100c2b1bba
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 31 16:40:20 2014 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+
+AnalogOut aout (PTE30);
+double frekvencija=1/200.0 ;
+double period2=0.00005;
+Ticker t1,t2;
+double var=0.0;
+
+void f1(){
+     aout=var/3.3;
+    var=var+0.01;
+    
+    }
+void f2(){
+         aout=var/3.3;
+        var=0.0;
+    }
+
+
+
+int main() {
+    
+    t1.attach(&f1, period2);
+    t2.attach(&f2,frekvencija);
+   
+}