FabGL
ESP32 Display Controller and Graphics Library

◆ attach()

void attach ( WaveformGenerator value)

Attaches a waveform generator.

Parameters
valuePointer of the waveform generator to attach

Example:

SineWaveformGenerator sine;
soundGenerator.attach(&sine);
sine.enable(true);
sine.setFrequency(500);  // 500 Hz

Definition at line 564 of file soundgen.cpp.