Adnan Kičin Nurif Dedagić

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tim003
Date:
Mon Mar 31 15:26:23 2014 +0000
Commit message:
LV5-Grupa3-tim003-zadatak1

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 f26ed78adf52 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 31 15:26:23 2014 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "math.h"
+AnalogOut izlaz(PTE30);
+Ticker t;
+float frekvencija=1000;
+float pi=3.14159265359; 
+float omega=2*pi*frekvencija;
+int i(0);
+void funkcija(){
+    izlaz=(0.5/3.3) + (0.5/3.3)*sin(omega*i*0.0001);
+    i++;
+    if(i==100) i=0;
+    }
+
+int main() {
+    t.attach_us(&funkcija, 250);
+    while(1){}
+}
diff -r 000000000000 -r f26ed78adf52 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 31 15:26:23 2014 +0000
@@ -0,0 +1,1 @@
+http://world3.dev.mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43
\ No newline at end of file