/reference/types -> /types
This commit is contained in:
@ -33,7 +33,7 @@ basic.forever(() => {
|
||||
|
||||
### Example: counter
|
||||
|
||||
The following example keeps showing the [number](/reference/types/number) stored in a global variable.
|
||||
The following example keeps showing the [number](/types/number) stored in a global variable.
|
||||
When you press button `A`, the number gets bigger.
|
||||
You can use a program like this to count things with your @boardname@.
|
||||
|
||||
|
@ -14,8 +14,8 @@ basic.showAnimation(`
|
||||
|
||||
### Parameters
|
||||
|
||||
* `leds` is a [String](/reference/types/string) that shows which LEDs are on and off, in groups one after another.
|
||||
* `interval` is an optional [Number](/reference/types/number). It means the number of milliseconds to pause after each image frame.
|
||||
* `leds` is a [String](/types/string) that shows which LEDs are on and off, in groups one after another.
|
||||
* `interval` is an optional [Number](/types/number). It means the number of milliseconds to pause after each image frame.
|
||||
|
||||
### Example: Animating a group of image frames
|
||||
|
||||
|
@ -15,8 +15,8 @@ basic.showLeds(`
|
||||
|
||||
### Parameters
|
||||
|
||||
* `leds` is a [string](/reference/types/string) that controls which LEDs are on and off.
|
||||
* `interval` is an optional [number](/reference/types/number) that means how many milliseconds to wait after showing a picture.
|
||||
* `leds` is a [string](/types/string) that controls which LEDs are on and off.
|
||||
* `interval` is an optional [number](/types/number) that means how many milliseconds to wait after showing a picture.
|
||||
If you are programming with blocks, `interval` is set at 400 milliseconds.
|
||||
|
||||
### Example
|
||||
|
@ -8,8 +8,8 @@ basic.showNumber(2)
|
||||
|
||||
### Parameters
|
||||
|
||||
* `value` is a [Number](/reference/types/number).
|
||||
* `interval` is an optional [Number](/reference/types/number). It means the number of milliseconds before sliding the `value` left by one LED each time. Bigger intervals make the sliding slower.
|
||||
* `value` is a [Number](/types/number).
|
||||
* `interval` is an optional [Number](/types/number). It means the number of milliseconds before sliding the `value` left by one LED each time. Bigger intervals make the sliding slower.
|
||||
|
||||
### Examples:
|
||||
|
||||
@ -39,10 +39,10 @@ for (let i = 0; i < 6; i++) {
|
||||
|
||||
### Other show functions
|
||||
|
||||
* Use [show string](/reference/basic/show-string) to show a [String](/reference/types/string) with letters on the screen.
|
||||
* Use [show string](/reference/basic/show-string) to show a [String](/types/string) with letters on the screen.
|
||||
* Use [show animation](/reference/basic/show-animation) to show a group of pictures on the screen, one after another.
|
||||
|
||||
### See also
|
||||
|
||||
[show string](/reference/basic/show-string), [show animation](/reference/basic/show-animation), [Number](/reference/types/number), [math](/blocks/math)
|
||||
[show string](/reference/basic/show-string), [show animation](/reference/basic/show-animation), [Number](/types/number), [math](/blocks/math)
|
||||
|
||||
|
@ -8,8 +8,8 @@ basic.showString("Hello!")
|
||||
|
||||
### Parameters
|
||||
|
||||
* `text` is a [String](/reference/types/string). It can contain letters, numbers, and punctuation.
|
||||
* `interval` is an optional [Number](/reference/types/number). It means the number of milliseconds before sliding the [String](/reference/types/string) left by one LED each time. Bigger intervals make the sliding slower.
|
||||
* `text` is a [String](/types/string). It can contain letters, numbers, and punctuation.
|
||||
* `interval` is an optional [Number](/types/number). It means the number of milliseconds before sliding the [String](/types/string) left by one LED each time. Bigger intervals make the sliding slower.
|
||||
|
||||
### Examples:
|
||||
|
||||
@ -19,7 +19,7 @@ To show the word **Hello**:
|
||||
basic.showString("Hello")
|
||||
```
|
||||
|
||||
To show what is stored in a [String](/reference/types/string) variable:
|
||||
To show what is stored in a [String](/types/string) variable:
|
||||
|
||||
```blocks
|
||||
let s = "Hi"
|
||||
@ -33,5 +33,5 @@ basic.showString(s)
|
||||
|
||||
### See also
|
||||
|
||||
[String](/reference/types/string), [show number](/reference/basic/show-number), [show animation](/reference/basic/show-animation)
|
||||
[String](/types/string), [show number](/reference/basic/show-number), [show animation](/reference/basic/show-animation)
|
||||
|
||||
|
Reference in New Issue
Block a user