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 (
         UInt32frequency,
         UInt32duration
)

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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

Utility Class
Utility Members
Microsoft.SPOT.Hardware Namespace