Im trying to get a program running, but this error appears after compiling.
In file included from /Users/user/Documents/Arduino/IR_Receiver_Module_Moped/IR_Receiver_Module_Moped.ino:4:0:
/Users/user/Documents/Arduino/libraries/IRremote-2.6.1/src/IRremote.h:183:16: error: expected unqualified-id before numeric constant #define REPEAT 0xFFFFFFFF
^
/Users/benbehrendt/Documents/Arduino/libraries/DFPlayerMini_Fast/src/DFPlayerMini_Fast.h:83:16: note: in expansion of macro 'REPEAT'
const uint8_t REPEAT = 0;
Please post a link (using the chain links icon on the forum toolbar to make it clickable) to where you downloaded the DFPlayerMini_Fast library from. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.
The problem is that the IRremote library defines a macro named REPEAT. But the DFPlayerMini_Fast library has a variable named REPEAT. So there is a name collision between the two libraries. Fortunately, the fix is easy.
At the top of your sketch, you have some code that looks something like this:
pert:
The problem is that the IRremote library defines a macro named REPEAT. But the DFPlayerMini_Fast library has a variable named REPEAT. So there is a name collision between the two libraries. Fortunately, the fix is easy.
At the top of your sketch, you have some code that looks something like this:
#include <IRremote.h>
#include <DFPlayerMini_Fast.h>
You only need to change the order so the #include directive for the DFPlayerMini_Fast library comes before the one for the IRremote library: