fixing docs issues

This commit is contained in:
Peli de Halleux 2017-03-21 09:11:24 -07:00
parent daf3c5553e
commit 4b01210b0d
2 changed files with 26 additions and 1 deletions

View File

@ -5,6 +5,22 @@
The [show number](/reference/basic/show-number) function displays a number on the [LED screen](/device/screen). The [show number](/reference/basic/show-number) function displays a number on the [LED screen](/device/screen).
For example, this code displays the number 42: For example, this code displays the number 42:
```blocks ```block
basic.showNumber(42); basic.showNumber(42);
``` ```
### #declareexample
```block
let num = 42;
basic.showNumber(42);
```
### #functionreturnexample
For example the following code gets the display brightness
(using the [brightness function](/reference/led/brightness)) and stores the value in a variable named `brightness`:
```block
let brightness = led.brightness()
```

9
docs/types/var.md Normal file
View File

@ -0,0 +1,9 @@
# @extends
### #letexample
A variable is created for the number returned by the [brightness](/reference/led/brightness) function.
```block
let b = led.brightness();
```