Hello,
You can refer to the pwm example as we provided product disk to know how to use the backlight.