IR REMOTE INTERFACING WITH MSP430 LAUNCHPAD (MSP430G2553) USING TSOP SENSOR






PROGRAM
/*
 * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
 * An IR detector/demodulator must be connected to the input RECV_PIN.
 */

#include <IRremote.h>

int RECV_PIN = P2_1;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
  Serial.begin(9600);delay(1000); Serial.println("HAI");
  irrecv.enableIRIn(); // Start the receiver
}

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