PicoScope experiment

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
AdamCiechalski
Date:
Sat Apr 13 13:26:52 2019 +0000
Commit message:
Inst Lab1;

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Apr 13 13:26:52 2019 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+AnalogOut Aout (p18);
+
+float i;
+
+int main(){
+        while(1) {
+            for (i=0; i<=1; i=i+0.001) {
+                Aout = i;
+                wait (0.0001);
+                }
+            for (i=1; i=>0; i=i-0.001){
+                Aout = i;
+                wait (0.0001);
+                }
+        }
+    }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Apr 13 13:26:52 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file