@extends

Show number #print

The show number function displays a number on the LED screen. For example, this code displays the number 42:

basic.showNumber(42);

#declareexample

let num = 42;
basic.showNumber(42);

#functionreturnexample

For example the following code gets the display brightness (using the brightness function) and stores the value in a variable named brightness:

let brightness = led.brightness()