From aa6a965f5915c41f62683e46e9dccd6272bba0c2 Mon Sep 17 00:00:00 2001 From: Ron Hale-Evans Date: Mon, 18 Jul 2016 11:14:51 -0700 Subject: [PATCH] Fixing parameters --- docs/reference/led/plot-bar-graph.md | 9 +++++++-- docs/reference/led/plot.md | 7 +++++-- docs/reference/led/point.md | 7 +++++-- docs/reference/led/set-brightness.md | 10 ++++++---- docs/reference/led/unplot.md | 7 +++++-- 5 files changed, 28 insertions(+), 12 deletions(-) diff --git a/docs/reference/led/plot-bar-graph.md b/docs/reference/led/plot-bar-graph.md index 5f3ea5fa..f2550ee2 100644 --- a/docs/reference/led/plot-bar-graph.md +++ b/docs/reference/led/plot-bar-graph.md @@ -9,8 +9,13 @@ led.plotBarGraph(2, 20); ### Parameters -* `value` is a [Number](/reference/types/number) that means what you are measuring or trying to show. For example, if you are measuring the temperature of ice with the BBC micro:bit, `value` might be 0 because the temperature might be 0 degrees centigrade. -* `high` is a [Number](/reference/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. +* ``value`` is a [number](/reference/types/number) that means what you + are measuring or trying to show. For example, if you are measuring + the temperature of ice with the BBC micro:bit, ``value`` might be `0` + because the temperature might be 0 degrees centigrade. +* ``high`` is a [number](/reference/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. ### Example: chart acceleration diff --git a/docs/reference/led/plot.md b/docs/reference/led/plot.md index 57bdf894..0a200889 100644 --- a/docs/reference/led/plot.md +++ b/docs/reference/led/plot.md @@ -14,8 +14,11 @@ Use [unplot](/reference/led/unplot) to turn **off** an LED. ### Parameters -* **x** is a [number](/reference/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 spot on the LED screen (from top to bottom: 0, 1, 2, 3, or 4) +* ``x`` is a [number](/reference/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 + 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 other than 0 to 4), then this function will do nothing. diff --git a/docs/reference/led/point.md b/docs/reference/led/point.md index 6ce3e3a2..13f740ae 100644 --- a/docs/reference/led/point.md +++ b/docs/reference/led/point.md @@ -9,8 +9,11 @@ led.point(0,0); ### Parameters -* **x** is a [number](/reference/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 spot on the LED screen (from top to bottom: 0, 1, 2, 3, or 4) +* ``x`` is a [number](/reference/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 + 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 other than 0 to 4), this function will return `false`. diff --git a/docs/reference/led/set-brightness.md b/docs/reference/led/set-brightness.md index 3525ff83..fd6df280 100644 --- a/docs/reference/led/set-brightness.md +++ b/docs/reference/led/set-brightness.md @@ -9,13 +9,16 @@ led.setBrightness(121) ### Parameters -* 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. +* ``value`` is 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. ### Example: change brightness -This program makes the screen brightness 100% (255). Then it turns on +This program makes the screen brightness 100% (`255`). Then it turns on the center LED (`2, 2`), waits for one second, and then sets the screen -brightness to 50% (128): +brightness to 50% (`128`): ```blocks led.setBrightness(255) @@ -27,4 +30,3 @@ led.setBrightness(led.brightness() / 2) ### See also [brightness](/reference/led/brightness), [fade in](/reference/led/fade-in), [fade out](/reference/led/fade-out), [LED screen](/device/screen) - diff --git a/docs/reference/led/unplot.md b/docs/reference/led/unplot.md index dee03cc7..0cbb9ad1 100644 --- a/docs/reference/led/unplot.md +++ b/docs/reference/led/unplot.md @@ -14,8 +14,11 @@ Use [plot](/reference/led/plot) to turn **on** an LED. ### Parameters -* **x** is a [number](/reference/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 spot on the LED screen (from top to bottom: 0, 1, 2, 3, or 4) +* ``x`` is a [number](/reference/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 + 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 other than 0 to 4), then this function will do nothing.