Having issue with Laser

I am making a core xy laser using a BTT skr v1.4 . And having issue connecting it to my Creality 1.6w laser module . I have configured a custom marlin and I am using servo ports for pwm . Any help is appreciated . The lasers power is connected to 24v +- of power supply.