Skip to content

Are there anyone who can help me to solve this error. I am trying to make a ir remote control circuit using arduino uno as isp and attiny13a. error - "#error Internal code configuration error, no timer functions implemented for this AVR CPU / board" #12067

Closed as not planned
@AvishkaFdo21

Description

@AvishkaFdo21

#include "IRremote.h"

/-----( Declare Constants )-----/
#define receiver PB0
int device1 = PB1;
/-----( Declare objects )-----/
IRrecv irrecv(receiver); // create instance of 'irrecv'
decode_results results; // create instance of 'decode_results'
/-----( Declare Variables )-----/

void setup() /----( SETUP: RUNS ONCE )----/
{

irrecv.enableIRIn(); // Start the receiver

pinMode(device1, OUTPUT);

digitalWrite(device1, LOW);

}/--(end setup )---/

void loop() /----( LOOP: RUNS CONSTANTLY )----/
{
if (irrecv.decode(&results)) // have we received an IR signal?

{

//translateIR(); 
  if (results.value==0x9716BE3F)
  {   
    digitalWrite(device1, !digitalRead(device1));

     
    }
   else if (results.value==0x3D9AE3F7)
  
irrecv.resume(); // receive the next value

}
}

Metadata

Metadata

Assignees

Labels

Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions