Go Down

Topic: RC5 on the Megaboard (Read 1 time) previous topic - next topic

Jackpo

Hallo.

I am using this program for the Arduino Megaboard but it is not working.

#include <IRremote.h>

int RECV_PIN = 11;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
  }
}

So can somebody help me?

Jackpo

Go Up