dimming led with pwm

i’m sure that there must be a way to dim an led that is connected to the board using PWM, but i don’t understand how this would be done. is this possible and please can you help?

Hi, have you seen the PWM example under board control? See File->Examples->Board Control and look at the PWM example.