ビープ用のライブラリ
Dependents: 00_yotsuba 10_motor-test 00_yotsuba 200_yotsuba_21 ... more
mbed Namespace Reference
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 More...
Detailed Description
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 Thu Jul 21 2022 18:35:16 by
1.7.2