Addendum to @robtillaart's post (he has the right idea; I just have more details)...
• Locate and open Enerlib.cpp
• Change this line...
#include <wiring.h>
...to this...
#include <Arduino.h>
• Save and close Enerlib.cpp
• Try to compile
Addendum to @robtillaart's post (he has the right idea; I just have more details)...
• Locate and open Enerlib.cpp
• Change this line...
#include <wiring.h>
...to this...
#include <Arduino.h>
• Save and close Enerlib.cpp
• Try to compile