@ -7,7 +7,7 @@ Find whether the LED you say on the
|
||||
led.point(0,0);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
## Parameters
|
||||
|
||||
* ``x`` is a [number](/types/number) that means the
|
||||
horizontal spot on the LED screen (from left to right: 0, 1, 2, 3,
|
||||
@ -18,19 +18,19 @@ led.point(0,0);
|
||||
If a parameter is [out of bounds](/reference/out-of-bounds) (a value
|
||||
other than 0 to 4), this function will return `false`.
|
||||
|
||||
### Returns
|
||||
## Returns
|
||||
|
||||
* a [boolean](/blocks/logic/boolean). If it is `true`, that means the LED is on. If it is `false`, that means the LED is off.
|
||||
|
||||
### ~hint
|
||||
## ~hint
|
||||
|
||||
The LED screen is a solid square of LEDs with five LEDs on each side.
|
||||
To learn more about how you number the LEDs with ``x`` and ``y``
|
||||
coordinates, see [LED screen](/device/screen).
|
||||
|
||||
### ~
|
||||
## ~
|
||||
|
||||
### Example: Toggle off
|
||||
## Example: Toggle off
|
||||
|
||||
This program turns the center LED (2, 2) off if it is already on. (If
|
||||
it is already off, this program leaves it off.)
|
||||
@ -41,7 +41,7 @@ if (led.point(2, 2)) {
|
||||
}
|
||||
```
|
||||
|
||||
### See also
|
||||
## See also
|
||||
|
||||
[unplot](/reference/led/unplot), [plot](/reference/led/plot), [LED screen](/device/screen)
|
||||
|
||||
|
Reference in New Issue
Block a user