A component that provides a high-level interface to a sound sensor on a LEGO MINDSTORMS NXT robot
BluetoothClient
The BluetoothClient component that should be used for communication. Must be set in the Designer
The sensor port that the sensor is connected to. Must be set in the Designer
The bottom of the range used for the BelowRange, WithinRange, and AboveRange events.
The top of the range used for the BelowRange, WithinRange, and AboveRange events.
BelowRangeEventEnabled
Whether the BelowRange event should fire when the sound level goes below the BottomOfRange.
WithinRangeEventEnabled
Whether the WithinRange event should fire when the sound level goes between the BottomOfRange and the TopOfRange.
AboveRangeEventEnabled
Whether the AboveRange event should fire when the sound level goes above the TopOfRange.
Sound level has gone below the range.
Sound level has gone within the range.
Sound level has gone above the range.
Methods
GetSoundLevel ()
Returns the current sound level as a value between 0 and 1023, or -1 if the sound level can not be read.