mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 19:38:30 +02:00
rtttl player (#1171)
* rtttl player * fixes * Cleanup, add action, condition, etc. * add test * updates * fixes * Add better error messages * lint
This commit is contained in:
committed by
GitHub
parent
4996967c79
commit
f6e3070dd8
@@ -46,9 +46,20 @@ class FloatOutput : public BinaryOutput {
|
||||
*/
|
||||
void set_min_power(float min_power);
|
||||
|
||||
/// Set the level of this float output, this is called from the front-end.
|
||||
/** Set the level of this float output, this is called from the front-end.
|
||||
*
|
||||
* @param state The new state.
|
||||
*/
|
||||
void set_level(float state);
|
||||
|
||||
/** Set the frequency of the output for PWM outputs.
|
||||
*
|
||||
* Implemented only by components which can set the output PWM frequency.
|
||||
*
|
||||
* @param frequence The new frequency.
|
||||
*/
|
||||
virtual void update_frequency(float frequency) {}
|
||||
|
||||
// ========== INTERNAL METHODS ==========
|
||||
// (In most use cases you won't need these)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user