How to Control an Additional Motor Using I/O PWM OUT on PX4

That’s the way with PX4 v1.14.x and v1.15.x. Open the actuator tab in QGC and set it up there.

You should be able to set it as Aux 1, and then configure that in the RC config as well.