Thanks for the prompt reply.
No, it doesn’t build, failing with these errors -
25 | #include <Adafruit_I2CDevice.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\nodemcuv2\lib3b7\RTClib\RTC_PCF8523.cpp.o] Error 1
src\main.cpp:18:1: error: ‘_VOID’ does not name a type
18 | _VOID _EXFUN(tzset, (_VOID));
| ^~~~~
src\main.cpp:19:20: error: expected primary-expression before ‘const’
19 | int _EXFUN(setenv,(const char *__string, const char *__value, int __overwrite));
| ^~~~~
src\main.cpp:19:20: error: expected ‘)’ before ‘const’
19 | int _EXFUN(setenv,(const char *__string, const char *__value, int __overwrite));
| ~^~~~~
| )
In file included from C:\Users\netdu.platformio\lib\RTClib\src\RTC_DS1307.cpp:1:
C:\Users\netdu.platformio\lib\RTClib\src\RTClib.h:25:10: fatal error: Adafruit_I2CDevice.h: No such file or directory
I found this article and managed to get the code to compile further after I used the suggested option to add the Adafruit Bus IO library into the project.
I still get the below errors though -
src\main.cpp:18:1: error: ‘_VOID’ does not name a type
18 | _VOID _EXFUN(tzset, (_VOID));
| ^~~~~
src\main.cpp:19:20: error: expected primary-expression before ‘const’
19 | int _EXFUN(setenv,(const char *__string, const char *__value, int __overwrite));
| ^~~~~
src\main.cpp:19:20: error: expected ‘)’ before ‘const’
As it happens, you previously helped someone else with the same Adafruit issue
Thanks again.