Last active
May 16, 2020 10:50
-
-
Save jrmedd/5516863 to your computer and use it in GitHub Desktop.
Replace '#include "WProgram.h"' with this code to make libraries compatible with latest Arduino IDE.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if defined(ARDUINO) && ARDUINO >= 100 | |
#include "Arduino.h" | |
#else | |
#include "WProgram.h" | |
#endif | |
#include <Wire.h> | |
/*Replace #include "WProgram.h" with the above code to make compatible with | |
latest Arduino IDE.*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@AlmamyAZ if still the problem exist,
try changing
"Arduino.h" "WProgram.h"
to<Arduino.h> <WProgram.h>
, and removingpart from .cpp file