Mirza Mesic
/
tinf_AnalogOut
AnalogOut_Test
Diff: main.cpp
- Revision:
- 0:29c5763c6e13
--- /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