hello hello everyone
i have issue with ir . i have code which work with Arduino . but did not work with attiny85 -digispark.
anyone can help plz....
thanks.
this is the simple code (on/off led)
#include <IRremote.h>
int recvpin = 0;
int LED= 2;
IRrecv irrecv(recvpin);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
pinMode(LED,OUTPUT);
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, DEC);
irrecv.resume(); // Receive the next value
}
delay(100);
if(results.value==2695152525){
digitalWrite(LED, HIGH);
delay(1000);
}
if(results.value==3495159679){
digitalWrite(LED, LOW);
delay(1000);
}
}
it run fine on arduino uno.
but in attiny85 does not.