FabGL
ESP32 Display Controller and Graphics Library
|
void attach | ( | WaveformGenerator * | value | ) |
Attaches a waveform generator.
value | Pointer of the waveform generator to attach |
Example:
SineWaveformGenerator sine; soundGenerator.attach(&sine); sine.enable(true); sine.setFrequency(500); // 500 Hz
Definition at line 684 of file soundgen.cpp.