weeeweeereree
Dependencies: PWM_Tone_Library mbed
Fork of PiezoBuzzer_HelloWorld_WIZwiki-W7500 by
Revision 1:e3fe34d2f61b, committed 2018-06-15
- Comitter:
- biswajit007
- Date:
- Fri Jun 15 07:22:51 2018 +0000
- Parent:
- 0:9d311e74ad13
- Commit message:
- dfgdfdjfjn
Changed in this revision
--- a/PWM_Tone_Library.lib Fri Jul 24 05:12:14 2015 +0000 +++ b/PWM_Tone_Library.lib Fri Jun 15 07:22:51 2018 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/justinkim/code/PWM_Tone_Library/#d06af372d384 +http://developer.mbed.org/users/justinkim/code/PWM_Tone_Library/#4b841d62e529
--- a/main.cpp Fri Jul 24 05:12:14 2015 +0000 +++ b/main.cpp Fri Jun 15 07:22:51 2018 +0000 @@ -6,6 +6,7 @@ /* Private define ------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ PwmOut Buzzer(D5); +DigitalIn IR(D6); float C_3 = 1000000/Do3, Cs_3 = 1000000/Do3s, @@ -64,10 +65,16 @@ wait_ms(250); int i; + while(1){ + int ir = IR.read(); + if(ir == 0){ for(i=0; i<tones_num; i++) { Auto_tunes(Buzzer, tones[i], 4); // Auto performance Stop_tunes(Buzzer); } + } + +} } \ No newline at end of file
--- a/mbed.bld Fri Jul 24 05:12:14 2015 +0000 +++ b/mbed.bld Fri Jun 15 07:22:51 2018 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/bad568076d81 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee \ No newline at end of file