Mirza Mesic
/
tinf_AnalogOut
AnalogOut_Test
Revision 0:29c5763c6e13, committed 2019-12-09
- Comitter:
- mirzamesic
- Date:
- Mon Dec 09 17:17:10 2019 +0000
- Commit message:
- ver1
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 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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Dec 09 17:17:10 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file