Please help me out someone.
can not compile an IRsensor code for attiny13
#include <IRremote.h>
int IRpin = 0; // pin for the IR sensor
int LED = 3; // LED pin
IRrecv irrecv(IRpin);
decode_results results;
void setup()
{
pinMode(3, OUTPUT);
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value);
irrecv.resume();
if(results.value== 3576004571) // Your ON button value
{
digitalWrite(3,HIGH);
}
else if(results.value == 2158120515) // Your OFF button value
{
digitalWrite(3,LOW);
}
}
}
I am using this board config
https://mcudude.github.io/MicroCore/package_MCUdude_MicroCore_index.json
and this is the IR library
http://gammon.com.au/Arduino/IRremote_Attiny.zip
Note : I can successfully compile and upload blink sketch(using nano as programmer). also the code runs fine
on nano. means there is something problem with attiny library and irsensor library.
I can not even understand the errors showing if anyone can get this please help.
I have attached the error message
error msg.txt (9.67 KB)