Hi All,
Can you help me?
I'm working on the Security TAG firmware and I need to control an LED to indicate when the TAG is paired or not with a cellphone.
I am using the "AppIsDeviceBonded ()" function to trigger an LED. The goal is to make the LED light up when the TAG is not paired and turn off when paired.
When I turn the TAG on, the LED immediately turns on and when I do the pairing with a cell phone, it turn off, but when I undo the pair, it does not light anymore. Even if I turn the TAG off, it does not turn on again.
extern void TagHwDataInit(void)
{
if(!AppIsDeviceBonded())
{
enableLED();
}
else
disableLED();
/* Delete button press timer */
TimerDelete(button_press_tid);
button_press_tid = TIMER_INVALID;
}
Thanks,
Thiago Pivoto
Just define the PIO of the led as output and send zero or one to close the led.
Look other places in the code that may affect the led PIO state
You can call my Skype nissim.test
-Nissim