2016-03-26 00:47:20 +01:00
# Fade out
2016-04-13 17:27:45 +02:00
Gradually decrease the [LED screen ](/device/screen ) brightness until the LED lights are turned off.
2016-03-26 00:47:20 +01:00
```sig
led.fadeOut(700);
```
2019-12-02 05:58:26 +01:00
## Parameters
2016-03-26 00:47:20 +01:00
2019-12-02 05:58:26 +01:00
* ms - [Number ](/types/number ); the speed that the screen brightness is decreased, expressed in milliseconds (1,000 milliseconds = 1 second). The smaller the number the faster the screen brightness decreased.
2016-03-26 00:47:20 +01:00
2019-12-02 05:58:26 +01:00
## Example: fade away letter A
2016-03-26 00:47:20 +01:00
The following example sets the screen brightness to the maximum brightness, displays the letter A, and then gradually fades the letter away:
```blocks
led.setBrightness(255)
basic.showString("A", 1000)
led.fadeOut(1000)
```
2019-12-02 05:58:26 +01:00
## See also
2016-03-26 00:47:20 +01:00
2016-04-13 17:27:45 +02:00
[brightness ](/reference/led/brightness ), [fade in ](/reference/led/fade-in ), [set brightness ](/reference/led/set-brightness )
2016-03-26 00:47:20 +01:00