Let's Make Robots!

38.0khz

IR RC code problems...

 

 

#include <IRremote.h>

#define m1F 6

#define m1R 7

#define m2F 5

#define m2R 8

 

long F = 1979994096;

long L = 1979994056;

long R = 1979994048;

long B = 1979994076;

long S = 1979994080;

int RECV_PIN = 4;

 

IRrecv irrecv(RECV_PIN);

 

decode_results results;

 

void setup()

{

  pinMode(13, OUTPUT);

  pinMode(m1F, OUTPUT);

  pinMode(m1R, OUTPUT);

  pinMode(m2F, OUTPUT);