AnalogOut_Test

Dependencies:   mbed

Revision:
0:29c5763c6e13
diff -r 000000000000 -r 29c5763c6e13 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 09 17:17:10 2019 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+ 
+AnalogOut Aout(p18);        // Kopfhörer
+AnalogIn pot1(p19);
+ 
+int main() {
+    while(1) {
+        Aout = pot1.read(); // Lautstärke
+        wait_us(1000);      // Frequenz
+        Aout = 0;
+        wait_us(1000);
+    }
+    }
\ No newline at end of file