How-To: Modify Marlin to control a laser with an SKR Pro

That should do it. Make sure to drop an M5 as the last line just to be safe. I don’t think that is needed unless you have an enable pin, but I am not really sure, that is a guess.