Unknown command: @extends

Show number

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

basic.showNumber(42);

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

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()