Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed 4DGL-uLCD-SE mbed-rtos nRF24L01P
Speaker.h
- Committer:
- Nurchu
- Date:
- 2018-04-20
- Revision:
- 20:e068469ffb89
- Parent:
- 17:604f9c4bd6d3
- Child:
- 33:5d86c111d9bc
File content as of revision 20:e068469ffb89:
#include "mbed.h" class Speaker { public: Speaker(PinName pin); // Writes a scaled uint8_t from RF transmission to the speaker void write(uint8_t value); // Writes 0 to the analogOut to completely turn off the speaker void turnOff(); private: AnalogOut _pin; float dc; };