/reference/types -> /types

This commit is contained in:
Peli de Halleux
2017-03-16 07:57:41 -07:00
parent 69bd0225ad
commit 00e9217e73
116 changed files with 224 additions and 361 deletions

View File

@ -8,7 +8,7 @@ led.brightness();
### Returns
* a [number](/reference/types/number) that means how bright the screen is when it is turned on, from `0` (darkest) to `255` (brightest). For example, the number `127` means the screen is halfway bright when it is turned on.
* a [number](/types/number) that means how bright the screen is when it is turned on, from `0` (darkest) to `255` (brightest). For example, the number `127` means the screen is halfway bright when it is turned on.
### Example: highest brightness

View File

@ -8,7 +8,7 @@ led.enable(false);
### Parameters
* ``on`` is a [boolean](/reference/types/boolean) that defines the on/off state of the screen
* ``on`` is a [boolean](/types/boolean) that defines the on/off state of the screen
### Example: Turning off the screen

View File

@ -8,7 +8,7 @@ led.fadeIn(700);
### Parameters
* ms - [Number](/reference/types/number); the speed by which the screen brightness is increased, expressed in milliseconds (1,000 milliseconds = 1 second). The smaller the number the faster the screen brightness increased.
* ms - [Number](/types/number); the speed by which the screen brightness is increased, expressed in milliseconds (1,000 milliseconds = 1 second). The smaller the number the faster the screen brightness increased.
### Example: fading dot

View File

@ -8,7 +8,7 @@ led.fadeOut(700);
### Parameters
* ms - [Number](/reference/types/number); the speed that the screen brightness is decreased, expressed in milliseconds (1,000 milliseconds = 1 second). The smaller the number the faster the screen brightness decreased.
* ms - [Number](/types/number); the speed that the screen brightness is decreased, expressed in milliseconds (1,000 milliseconds = 1 second). The smaller the number the faster the screen brightness decreased.
### Example: fade away letter A

View File

@ -9,11 +9,11 @@ led.plotBarGraph(2, 20);
### Parameters
* ``value`` is a [number](/reference/types/number) that means what you
* ``value`` is a [number](/types/number) that means what you
are measuring or trying to show. For example, if you are measuring
the temperature of ice with the @boardname@, ``value`` might be `0`
because the temperature might be 0 degrees centigrade.
* ``high`` is a [number](/reference/types/number) that means the highest
* ``high`` is a [number](/types/number) that means the highest
possible number that the ``value`` parameter can be. This number is
also the tallest that the lines in the bar chart can be.

View File

@ -14,10 +14,10 @@ Use [unplot](/reference/led/unplot) to turn **off** an LED.
### Parameters
* ``x`` is a [number](/reference/types/number) that means the
* ``x`` is a [number](/types/number) that means the
horizontal spot on the LED screen (from left to right: 0, 1, 2, 3,
or 4)
* ``y`` is a [number](/reference/types/number) that means the vertical
* ``y`` is a [number](/types/number) that means the vertical
spot on the LED screen (from top to bottom: 0, 1, 2, 3, or 4)
If a parameter is [out of bounds](/reference/out-of-bounds) (a value

View File

@ -9,10 +9,10 @@ led.point(0,0);
### Parameters
* ``x`` is a [number](/reference/types/number) that means the
* ``x`` is a [number](/types/number) that means the
horizontal spot on the LED screen (from left to right: 0, 1, 2, 3,
or 4)
* ``y`` is a [number](/reference/types/number) that means the vertical
* ``y`` is a [number](/types/number) that means the vertical
spot on the LED screen (from top to bottom: 0, 1, 2, 3, or 4)
If a parameter is [out of bounds](/reference/out-of-bounds) (a value

View File

@ -9,7 +9,7 @@ led.setBrightness(121)
### Parameters
* ``value`` is a [number](/reference/types/number) that means how
* ``value`` is a [number](/types/number) that means how
bright the screen is when it is turned on, from `0` (darkest) to
`255` (brightest). For example, the number `127` means the screen is
halfway bright when it is turned on.

View File

@ -8,8 +8,8 @@ led.toggle(0,0)
### Parameters
* x - [Number](/reference/types/number); the *x coordinate* or horizontal position (0, 1, 2, 3, 4)
* y - [Number](/reference/types/number); the *y coordinate* or vertical position (0, 1, 2, 3, 4)
* x - [Number](/types/number); the *x coordinate* or horizontal position (0, 1, 2, 3, 4)
* y - [Number](/types/number); the *y coordinate* or vertical position (0, 1, 2, 3, 4)
If a parameter is [out of bounds](/reference/out-of-bounds) (a value other than 0-4), then this function will do nothing.

View File

@ -14,10 +14,10 @@ Use [plot](/reference/led/plot) to turn **on** an LED.
### Parameters
* ``x`` is a [number](/reference/types/number) that means the
* ``x`` is a [number](/types/number) that means the
horizontal spot on the LED screen (from left to right: 0, 1, 2, 3,
or 4)
* ``y`` is a [number](/reference/types/number) that means the vertical
* ``y`` is a [number](/types/number) that means the vertical
spot on the LED screen (from top to bottom: 0, 1, 2, 3, or 4)
If a parameter is [out of bounds](/reference/out-of-bounds) (a value