The Pico has 32k RAM and 2MB flash.
I created a program by copying existing an Arduino code, which barely fitted into an UNO, into a main.cpp for the Pico. The project folder was created withe the Pico board selected.
For a while now, libraries need to be added to each project. So I added the PubSubClient to the project.
But where do I find the avr/wdt.h file?
And more so, how do I add it to the Pico project.
This step was not necessary under the Arduino framework/project.
The main question is though: can I program the Pico by using the Arduino libraries?
I thought I add some code:
#include <Arduino.h> // basic Arduino definitions #include <avr/wdt.h> // watch dog