Play tone of specified frequency.

Namespace:  AForge.Robotics.Lego
Assembly:  AForge.Robotics.Lego (in AForge.Robotics.Lego.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public bool PlayTone(
	short frequency,
	short duration,
	bool waitReply
)

Parameters

frequency
Type: System..::.Int16
Tone frequency in Hz.
duration
Type: System..::.Int16
Tone duration in milliseconds.
waitReply
Type: System..::.Boolean
Wait reply from NXT (safer option) or not (faster option).

Return Value

Returns true if device is alive or false otherwise.

See Also