Additional PWM - using XBAR inside Plecs Coder

Hi, Is there any way I could use additional PWM from XBAR through Plecs Coder?

I know I can initialize it with Native Code block, but how to change PWM value during run?

image

Could you help me, how to refer to the input and output inside block?

Best Regards, MRB

Hello - you don’t need the Native Code block to assign PWM peripherals to alternate pins.

This can be done directly from Coder options… → Target → PWM.

Kind regards,

Beat