|
Most all power buttons in TV remote controller consist of a single key: it toggles the power on or off according to its current status.
In the attached example we can ensure when “Power On” is pressed the TV is on, and when we press “Power Off” the TV is off.
By using “flag” the VK2100 can remember the previous status of a device and perform the correct action using a condition clause.
For example in “Power On” , we add a condition “if” to check the flag first: When the flag “Power Flag” is off then the IR signal “Power” will be sent. Do not forget to set the “Power Flag” to “On” in the end of the clause.
|