Fade in

Gradually increase the LED screen brightness until the LED lights are at full brightness.

led.fadeIn(700);

Parameters

Example: fading dot

The following code turns on centre LED and then gradually increases and decreases the screen brightness (the centre LED pulses 5 times):

led.plot(2, 2)
for (let i = 0; i < 5; i++) {
    led.setBrightness(0)
    led.fadeIn(100)
    basic.pause(100)
    led.fadeOut(100)
}

See also

brightness, fade out, set brightness

Edit this page on GitHub