NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool PFMateSend ( const byte &  port,
const byte &  i2caddr,
const byte &  channel,
const byte &  motors,
const byte &  cmdA,
const byte &  spdA,
const byte &  cmdB,
const byte &  spdB 

Send PFMate command.

Send a PFMate command to the power function IR receiver. 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.

portThe sensor port. See NBC Input port constants.
i2caddrThe sensor I2C address. See sensor documentation for this value.
channelThe power function IR receiver channel. See the PFMate channel constants group.
motorsThe motor(s) to control. See the PFMate motor constants group.
cmdAThe power function command for motor A.
spdAThe power function speed for motor A.
cmdBThe power function command for motor B.
spdBThe power function speed for motor B.
The function call result.