Hello all,
I have programmed the Arduino Uno , for RC Control Use.
Find attached the link :
No my question:
I use for example LED 1 on by push button 1 ( T.V Remote Control )
But when i will switch off the LED it's not possible to switch this LED off with the same button ??
In my example at you tube i used two buttons for switch ON / OFF the LED.
I will Switch ON / OFF the LED only by push button 1 ( T.V Remote Controller )
Please Someone advice me ?
Thanks in advance !!
Patrick.
set ledState variable to LOW
digitalWrite ledState to the LED pin
start of loop
read the input from the remote control
if the code received is button 1
set ledState to !ledState
digitalWrite ledState to the LED pin
end of if
end of loop
Depending on what is transmitted when you hold a key down on the remote the LED may not always change if the key is held down
Hi ,
I have attached a part of my sketch :
// LED RED ON
if(results.value == 0xDDC837) //if the button one is pressed.
{
digitalWrite(ledPin, HIGH);
}
else
// LED RED OFF
if(results.value == [color=red]0xDDC03F[/color]) //if the button VOL+ is pressed.
{
digitalWrite(ledPin, LOW);
When i change 0xDDC03F in 0xDDC837 ( Button 1 Remote Controll ) nothing happens 
Can you give me a example / change for this ?
Thanks in advance !!
Patrick
I had some problem with a few remote. The thing is that not all remote work the same way. Some will send some difenrent code for different instance...
If I may suggest, try your program with different remote. And try not to use universal remote. Cause those are the weirdest
Try printing results.value before you test its value so that you can see what is being sent.