I am trying to control a DC motor with an IR remote but it won't work, suggestions please.
#include "IRremote.h" #define ENABLE 5 #define DIRA 3 #define DIRB 4
int RECV_PIN = 2; // the pin where you connect the output pin of IR sensor
IRrecv irrecv(RECV_PIN);
decode_results results;
int i;
@scientificcrabs, please edit your opening post, select all code and click the </> button to apply code tags and next save your post. It makes it easier to read, easier to copy and prevents the forum software from incorrect interpretation of the code.
This is always vague; in future, please provide a clear description of what you expect the code to do and what it actually does.
You already have the new version!
Install the old version (if available) using Manage Libraries in the IDE.
Better update your code to use the new library version. If you don't know how to do that then play around with the examples coming with your actual library.