Piezo Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Causes a sound to be emitted from the piezo speaker.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)
Syntax
'Declaration
Public Shared Sub Piezo ( _
frequency As UInteger, _
duration As UInteger _
)
public static void Piezo(
uint frequency,
uint duration
)
public:
static void Piezo(
unsigned int frequency,
unsigned int duration
)
static member Piezo :
frequency:uint32 *
duration:uint32 -> unit
public static function Piezo(
frequency : uint,
duration : uint
)
Parameters
- frequency
Type: System. . :: . .UInt32
The frequency of the sound that is emitted, in hertz (Hz).
- duration
Type: System. . :: . .UInt32
The duration of the sound that is emitted, in milliseconds (ms).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.