lab3_4

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
shih775007
Date:
Sun Feb 26 08:49:37 2017 +0000
Commit message:
lab3_4

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 01b0c064a032 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Feb 26 08:49:37 2017 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+AnalogOut Aout(DAC0_OUT);
+AnalogIn Ain(A0);
+DigitalOut test(LED2);
+float ADCdata;
+
+int main(){
+    while(1){
+        ADCdata = Ain;
+        test = 1;
+        test = 0;
+        Aout = ADCdata;
+        test = 1;
+        test = 0;
+        test = 1;
+        test = 0;
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 01b0c064a032 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Feb 26 08:49:37 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/2241e3a39974
\ No newline at end of file