SnapMaker 2 Marlin 2 gCode Support

You can have a look at the source code of the firmware,