NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void SetSensorSound ( const byte &  port,
bool  bdBScaling = true 
)
inline

Configure a sound sensor.

Configure the sensor on the specified port as a sound sensor.

Parameters
portThe port to configure. See Input port constants.
bdBScalingA boolean flag indicating whether to configure the port as a sound sensor with dB or dBA scaling. The default value for this optional parameter is true, meaning dB scaling.
Examples:
ex_SetSensorSound.nxc.