Utilities classes for the Zumo Robot
Dependents: ZumoRobotBluetoothControlled Fsl_Zumo
Buzzer.h
00001 // Craciun Catalin 00002 // Buzzer.h 00003 // © 2014 Catalin Craciun 00004 00005 #ifndef BuzzerH 00006 #define BuzzerH 00007 00008 #include "mbed.h" 00009 00010 class Buzzer { 00011 public: 00012 Buzzer(PinName buzzerPinName); 00013 ~Buzzer(); 00014 00015 void stopBeep(); 00016 void startBeep(float frequency, float duration); 00017 00018 void playDefaultMelody(); 00019 private: 00020 PwmOut buzzerPin; 00021 Timeout timeout; 00022 00023 void playMel(); 00024 }; 00025 00026 #endif // BuzzerH
Generated on Thu Jul 14 2022 07:13:22 by 1.7.2