First Draft, serial print change based on distance
mbed Namespace Reference
Beep Class. More...
Detailed Description
Beep Class.
Acknowledgements to EJ Teb
class to make sound with a buzzer, based on a PwmOut The class use a timeout to switch off the sound - it is not blocking while making noise
Example:
// Beep with 1Khz for 0.5 seconds #include "mbed.h" #include "beep.h" Beep buzzer(p21); int main() { ... buzzer.beep(1000,0.5); ... }
Generated on Mon Aug 22 2022 16:53:08 by
1.7.2