NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool SetSensorHTPIRDeadband ( const byte  port,
byte  value 
)
inline

Set HiTechnic PIR deadband value.

Set the HiTechnic PIR deadband value. Returns a boolean value indicating whether or not the operation completed successfully. The port must be configured as a Lowspeed port before using this function. The deadband value must be between 0 and 47. It defines the half width of the deadband. The sensor has a default deadband value of 12.

Parameters
portThe sensor port. See Input port constants.
valueThe PIR deadband value. Valid values are between 0 and 47.
Returns
The function call result.