Analog Set Pitch Pin

Specify which pin (P0, P1, P2) is used to generate tones.

pins.analogSetPitchPin(AnalogPin.P1)

Parameters

Example

pins.analogSetPitchPin(AnalogPin.P1)
let frequency = 440
let duration = 1000
pins.analogPitch(frequency, duration)

Some common notes

See also

Calliope mini pins, analog set period, analog pitch

Edit this page on GitHub