FabGL
ESP32 VGA Controller and Graphics Library

◆ play()

void fabgl::SquareWaveGeneratorClass::play ( int  freq,
lldesc_t volatile *  dmaBuffers = NULL 
)

Set the main frequency.

Parameters
freqFrequency in Hertz.
dmaBuffersUse only to provide custom DMA buffers.

Example:

// Set 25MHz as main frequency
SquareWaveGenerator.play(25000000);