Utility.Piezo Method

Causes a sound to be emitted from the piezo speaker.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)


[MethodImplAttribute]
public static void Piezo (
         UInt32 frequency,
         UInt32 duration
)

Parameters

frequency
The frequency of the sound that is emitted, in hertz (Hz).
duration
The duration of the sound that is emitted, in milliseconds (ms).

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

Community Additions

ADD
Show: