Hello everyone,
i will be grateful if someone help me to resolve a problem with attiny85 and IRemot.
I use this IRremot only to switchon my LED.
All things function correctly with arduino Mega 2560 and i don't have any error when i compile the following code in the attiny85 but the circuit no function and my LED don't react.
When i compile others codes in attiny85, they function correctly ,
I have searched for many weeks but i don't find the solution.
thanks for your help
#include "IRremote.h"
int ledPin = 1;
int receiver = 4;
IRrecv irrecv(receiver);
decode_results results;
void setup()
{
pinMode(ledPin, OUTPUT);
irrecv.enableIRIn();
}
void loop()
{
if (irrecv.decode(&results))
{
translateIR();
irrecv.resume();
}
}
void translateIR()
{
if (results.value == xxxxxx)
{
digitalWrite(ledPin, HIGH);
}
delay(5000);
digitalWrite(ledPin, LOW);
}