Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 555 Bytes

number.md

File metadata and controls

26 lines (18 loc) · 555 Bytes

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