Reference   Language | Libraries | Comparison | Changes

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

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.