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 Class Reference
#include <Speaker.h>
Public Member Functions | |
Speaker (PinName pin) | |
Assign a pin to Speaker. | |
void | rawWrite (float value) |
Write a value a pin to Speaker. | |
void | write (uint8_t value) |
void | turnOff () |
Writes 0 to the analogOut to completely turn off the speaker. |
Detailed Description
Speaker Class.
Definition at line 7 of file Speaker.h.
Constructor & Destructor Documentation
Speaker | ( | PinName | pin ) |
Assign a pin to Speaker.
- Parameters:
-
Pin The pin the Speaker will be assigned to
Definition at line 4 of file Speaker.cpp.
Member Function Documentation
void rawWrite | ( | float | value ) |
void turnOff | ( | ) |
Writes 0 to the analogOut to completely turn off the speaker.
Definition at line 16 of file Speaker.cpp.
void write | ( | uint8_t | value ) |
- Parameters:
-
value Writes a scaled uint8_t from RF transmission to the speaker
Definition at line 10 of file Speaker.cpp.
Generated on Tue Jul 12 2022 11:14:19 by
