Since the new update I get

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.ini worked (Marlin: Help me ERRROR ModuleNotFoundError - #11 by maxgerhardt)
  • or fix this platformio.ini to work with your current core (assuming normal recent 5.x core version). There I’d suggest adding Wire to the lib_deps list and/or doing a #include <Wire.h> at the top of the Marlin.ino file.

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.