Utilities classes for the Zumo Robot
Dependents: ZumoRobotBluetoothControlled Fsl_Zumo
This library represents some useful code for controlling your Zumo Robot.
Buzzer.h
- Committer:
- catalincraciun7
- Date:
- 2017-07-23
- Revision:
- 7:d2af97b7cc94
- Parent:
- 6:7740c9d8d834
File content as of revision 7:d2af97b7cc94:
// Craciun Catalin // Buzzer.h // © 2014 Catalin Craciun #ifndef BuzzerH #define BuzzerH #include "mbed.h" class Buzzer { public: Buzzer(PinName buzzerPinName); ~Buzzer(); void stopBeep(); void startBeep(float frequency, float duration); void playDefaultMelody(); private: PwmOut buzzerPin; Timeout timeout; void playMel(); }; #endif // BuzzerH