pxt-calliope/docs/reference/pins/analog-pitch.md
2016-04-13 08:27:45 -07:00

781 B

Analog Pitch

Emits a Pulse With Modulation (PWM) signal to the current pitch pin. Use analog set pitch pin to set the pitch pin.

pins.analogPitch(440, 300)

Parameters

Example

pins.analogSetPitchPin("P0")
let frequency1 = 440
let duration = 1000
pins.analogPitch(frequency1, duration)

Some common notes

See also

micro:bit pins, analog set period, analog set pitch pin