Autostart load settings - ThomasToka/MarlinFirmware GitHub Wiki

I would like to point you to the autostart function.

https://marlinfw.org/docs/features/autostart.html

One can save values in that file that are loaded on startup of the printer. The name of the file: auto0.g It accepts simple gcode like:

M206 X-2.0 Y-2.0 ; home offset M851 Z-1.9 ; Zoffset M420 S1 Z10; Enable Leveling with 10mm fading height M500 ; Save settings

You can also put your steps, mesh, speeds, etc in it.