So I've been working on a pen plotter for over a year now. A lot of the machine is working really well now, removed the servo for the pen lifting and converted to a stepper motor for pen lifts now since stepper motors have a natively correct delay time in Marlin and all servo movements are executed all at once unless you put M400 in between everything multiple times. It's a drag to work with servo's, and they're noisy and break down quickly.
Anyway, I want to know how I can make the Marlin install as small as possible. I understand there is the option to disable things in the firmware that I don't need. Well, the entire Extrusion part isn't needed for example. Also, the whole bed leveling and bed heating part can be removed. But I do not know how to do this without breaking the firmware.
Is there anyone with the expertise that can explain to me how to achieve this? I want to free up as much memory as I can as I understand this also has a positive effect on the buffers.
Thanks for your time and energy, I hope everyone's safe and wise these days.
ps here's a picture of the plotter:
http://www.marinusdebeer.nl/