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:
Guillermo Ruffino
2020-07-25 12:57:11 -03:00
committed by GitHub
parent 4996967c79
commit f6e3070dd8
8 changed files with 356 additions and 6 deletions
+12 -1
View File
@@ -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)