Methods
-
get_pressed_ir_button()
-
Returns which IR button is being pressed.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
GetIRButton()
-
ir_button(irButton)
-
Returns the chosen IR button.
Check out the third party documentation for a more in depth explanation.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()
-
Restarts the IR sensor communcation.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
//Listen for 4 byte packets RxIRRestart(4);