dasdasd

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Paaranoja
Date:
Sat Nov 19 12:56:56 2016 +0000
Commit message:
dfsa

Changed in this revision

mbed.bld Show annotated file Show diff for this revision Revisions of this file
zadatak4s.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Nov 19 12:56:56 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/0ab6a29f35bf
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zadatak4s.cpp	Sat Nov 19 12:56:56 2016 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include <iostream>
+
+AnalogIn ain (p16);
+AnalogOut aout (p18);
+
+int main() {
+    
+    float value = 0.0;
+    int i = 0;
+    
+        while(1){
+            value = ain*1.65;
+            aout = value;
+            i++;
+            
+            if (i == 10000){
+                cout<<value*3.13<<endl;
+                i=0;
+                }
+         }
+    
+}
\ No newline at end of file