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: Chainable_RGB_LED DHT LED_Bar mbed mbedConnectorInterface mbedEndpointNetwork_mjk_regfix
BuzzerResource Class Reference
BuzzerResource class. More...
#include <BuzzerResource.h>
Public Member Functions | |
| BuzzerResource (const Logger *logger, const char *name, const bool observable=false) | |
| Default constructor. | |
| virtual string | get () |
| Get the on/off value of buzzer. | |
| virtual void | put (const string value) |
| Set the value of the buzzer. | |
Detailed Description
BuzzerResource class.
Definition at line 37 of file BuzzerResource.h.
Constructor & Destructor Documentation
| BuzzerResource | ( | const Logger * | logger, |
| const char * | name, | ||
| const bool | observable = false |
||
| ) |
Default constructor.
- Parameters:
-
logger input logger instance for this resource name input the Light resource name observable input the resource is Observable (default: FALSE)
Definition at line 47 of file BuzzerResource.h.
Member Function Documentation
| virtual string get | ( | ) | [virtual] |
Get the on/off value of buzzer.
- Returns:
- string containing the last setting
Definition at line 54 of file BuzzerResource.h.
| virtual void put | ( | const string | value ) | [virtual] |
Set the value of the buzzer.
- Parameters:
-
string input 0 for quiet, 1 for buzz
Definition at line 63 of file BuzzerResource.h.
Generated on Wed Jul 13 2022 19:30:15 by
1.7.2