asdasdasd

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Ivan_Lazarov
Date:
Tue Jun 23 13:28:06 2015 +0000
Commit message:
This theasjodhaso

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 de55248f2ed0 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jun 23 13:28:06 2015 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+AnalogOut Aout(PTE30);
+DigitalOut Output(PTD6);
+
+float x;
+unsigned int i,j,out;
+int array[100];
+
+int main() {
+    x=0;
+    i=0;
+    out=0;
+    for(i=0;i<99;i++) {
+        Output=out;
+        x=16*2047.0*(1+sin(2*3.142*i/50));
+        array[i]=x;
+    }
+    
+    while(1){
+        i=0;
+        for(i=0;i<99;i++){
+        j=array[i];
+        Aout.write_u16(j);
+        }
+        }
+}
\ No newline at end of file
diff -r 000000000000 -r de55248f2ed0 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jun 23 13:28:06 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1
\ No newline at end of file