Utilities classes for the Zumo Robot
Dependents: ZumoRobotBluetoothControlled Fsl_Zumo
This library represents some useful code for controlling your Zumo Robot.
Diff: Buzzer.h
- Revision:
- 7:d2af97b7cc94
- Parent:
- 6:7740c9d8d834
diff -r 7740c9d8d834 -r d2af97b7cc94 Buzzer.h --- a/Buzzer.h Sun Dec 21 12:46:41 2014 +0000 +++ b/Buzzer.h Sun Jul 23 12:51:35 2017 +0000 @@ -9,17 +9,18 @@ class Buzzer { public: - // Public methods and properties Buzzer(PinName buzzerPinName); ~Buzzer(); + void stopBeep(); void startBeep(float frequency, float duration); + void playDefaultMelody(); private: - // Private methods and properties - void playMel(); PwmOut buzzerPin; Timeout timeout; + + void playMel(); }; -#endif // BuzzerH \ No newline at end of file +#endif // BuzzerH