I have added watchdog.h from libraries.
This is how platformio.ini looks :
[env:ATmega328P]
platform = atmelavr
board = ATmega328P
framework = arduino
lib_deps =
nadavmatalon/WatchDog@^1.2.0
It is showing error like this
Please help. Thanks.
I think the library.json
is poorly written becauase there is no framework called “AVR”. It’s framework = arduino
. The platform is atmelavr
. So AVR
is any case just wrong.
You might be able to convince the LDF to include the library if you disable its sanity checks per docs:
lib_compat_mode = off
in the platformio.ini
.
1 Like