AudioFrequencyMeter - begin()

Description

Initializes the TC5 timer to sample the chosen pin at the chosen frequency. begin() needs to be called before any other AudioFrequencyMeter library methods.

Syntax

AudioFrequencyMeter.begin(unsigned int pin, unsigned int sampleRate)

Parameters

pin: the analog pin to be sampled sampleRate: the frequency expressed in Hz at which the pin must be sampled