Gradually decrease the LED screen brightness until the LED lights are turned off.
led.fadeOut(700);
The following example sets the screen brightness to the maximum brightness, displays the letter A, and then gradually fades the letter away:
led.setBrightness(255)
basic.showString("A", 1000)
led.fadeOut(1000)