Well there are threeways.
If you want to compile this older version of Marlin (because you e.g. know that your config header file sure works with this version of Marlin): Either
- get an older version of PlatformIO (version 4.x) in which this
platformio.iniworked (Marlin: Help me ERRROR ModuleNotFoundError - #11 by maxgerhardt) - or fix this
platformio.inito work with your current core (assuming normal recent 5.x core version). There I’d suggest addingWireto thelib_depslist and/or doing a#include <Wire.h>at the top of theMarlin.inofile.
If you want to stay up-to-date then you should grab the newest version of marlin (e.g. here, idk if 2.0.x or 2.0.x-bugfix is the one for you) and re-insert your configuration headher files and select the correct environment in the default_envs = xxxx expreession of the platformio.ini.