question on programming fisher price motor?

HI,
We wanted to hook it up to a relay, but the rules say it has to go to a pwm port. How do you program to “act as a relay?” We are going to use it for a “device” where all we need is an on/off switch.

Thanks,
Team 359

relay1_fwd=1 translates to pwm01=255. (full forward)
relay1_fwd=0 translates to pwm01=127. (neutral/off)