Wink IR Communication

Wink IR Communication

Methods


get_pressed_ir_button()

Code Equivalent:
GetIRButton()

ir_button(irButton)

Parameters:
Name Type Description
irButton

which IR button to return

Code Equivalent:
[irButton

ir_when()


Determines events to happen when the IR Communication is complete. The user can determine which button to detect, and the event to fire when that button is pressed.

Check out the third party documentation for a more in depth explanation.

Code Equivalent:

  //EXAMPLE:
  if(IsIRDone()){
    int button = GetIRButton();
    if(button == null){
      RxIRRestart(4);
    }
    else{
      RxIRRestart(4);
    }

is_ir_done()


Returns true/false about whether or not the IR Communication action is done.

Check out the third party documentation for a more in depth explanation.

Code Equivalent:

  //Check for completion of IR read
  IsIRDone()

restart_ir()

Code Equivalent:

  //Listen for 4 byte packets
  RxIRRestart(4);