Sorry for the confusion.
When I tested your original code, I had an INO and removed the external libs and still got a similar error to yours, which went away the way I said above.
But now I’ve tried your full code and now I see the problem, too.
TimeAlarms/TimeAlarms.h:14:15: error: expected unqualified-id before '(' token
#define now() (Time.now()+time_zone_cache)
^
The problem is not in your code, but in the combination of Time.now()
and the TimeAlarms
library.
Maybe you could try #undef now
in your user code, after all the #include
statements.
If this causes errors with Adafruit_GFX
, try commenting the #include "Adafruit_GFX.h"
, that solved these errors for me.