Usage
The IRremote library used in the example below relies on using Pin 3 of the arduino for PWM output.
For non-IRremote based usage of this Grove, other pins could be used.
Hardware Installation
Connect the Transmitter module to Digital I/O 2 of the Grove - Base Shield on the receiving arduino.
Programming
The demo below is the IRsendDemo.pde example provided by the IRremote library.
Download IRremote.zip and unpack into arduino/hardware/libraries in your arduino installation.
/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
IRsend irsend;
void setup()
{
Serial.begin(9600);
}
void loop() {
if (Serial.read() != -1) {