Hi guys!
My problem is basically that when i hold down a button on my remote it seems to not check for the signal again until i let go of it.That leaves me with 1 blink (im using leds just to test how this works)
instead of a continous blinking
It is common for a special code to be sent when a key (any key) is held down. What code do you get when you hold down the key, if any ? If you get a continuous stream of the same code then you can detect it and make the Arduino do what you want.
What does your receiver receive while you have the button held down. Many remotes send a code that means 'repeat' while a button is held. There may be some buttons that DONT repeat. For example it would not be helpful for the power button to repeat. If that is the case you will have to pick a different button.
UKHeliBob:
It is common for a special code to be sent when a key (any key) is held down. What code do you get when you hold down the key, if any ? If you get a continuous stream of the same code then you can detect it and make the Arduino do what you want.
johnwasser:
What does your receiver receive while you have the button held down. Many remotes send a code that means 'repeat' while a button is held. There may be some buttons that DONT repeat. For example it would not be helpful for the power button to repeat. If that is the case you will have to pick a different button.
I know that holding down a button on some remotes cause it to change id to 0xFFFFFF but i tried with that too and that didn't do anything as well.And my remote is car mp3 which supposedly sends 0xFFFFFF when holding down.
Skarred:
I know that holding down a button on some remotes cause it to change id to 0xFFFFFF but i tried with that too and that didn't do anything as well.And my remote is car mp3 which supposedly sends 0xFFFFFF when holding down.
UKHeliBob:
Did you try printing what you were receiving ?
Okay so i tried that and also figured out that it sends 0xFFFFFFFF when you hold it down(2 more f-s of course -.-)And it prints out dots and weird characters but it does repeat the blinking only problem is now that it repeats both leds not just one.
You can get the compiler to throw an error if you use if (1 = repeat)instead as it won't allow the attempt to assign a value to a constant but that form always seems odd to me.