Share via


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)

Syntax

[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).

Version Information

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

See Also

Reference

Utility Class
Utility Members
Microsoft.SPOT.Hardware Namespace