fixing links

This commit is contained in:
Peli de Halleux 2017-03-12 04:16:01 -07:00
parent a8df983214
commit 30e2701b81
4 changed files with 107 additions and 106 deletions

View File

@ -1,119 +1,120 @@
# Summary
* [Support](https://support.microbit.org/)
### Projects
* [Things to do](/docs)
* [Make](/projects.md)
* [Flashing heart](/projects/flashing-heart.md)
* [Smiley buttons](/projects/smiley-buttons.md)
* [Love meter](/projects/love-meter.md)
* [Rock raper scissors](/projects/rock-paper-scissors.md)
* [Magic button trick](/projects/magic-button-trick.md)
* [Hack your headphones](/projects/hack-your-headphones.md)
* [Banana keyboard](/projects/banana-keyboard.md)
* [Guitar](/projects/guitar.md)
* [Duct tape wallet](/projects/wallet.md)
* [Watch](/projects/watch.md)
* [Inchworm](/projects/inchworm.md)
* [Timing gates](/projects/timing-gates.md)
* [Compass](/projects/compass.md)
* [Telegraph](/projects/telegraph.md)
* [Radio](/projects/radio.md)
* [Code](/examples.md)
* [Blinky](/examples/blinky.md)
* [Name tag](/examples/name-tag.md)
* [Rando](/examples/rando.md)
* [Plot acceleration](/examples/plot-acceleration.md)
* [Plot light level](/examples/plot-light-level.md)
* [Plot analog pin](/examples/plot-analog-pin.md)
* [Projects](/docs)
* [Make](/projects)
* [Flashing heart](/projects/flashing-heart)
* [Smiley buttons](/projects/smiley-buttons)
* [Love meter](/projects/love-meter)
* [Rock raper scissors](/projects/rock-paper-scissors)
* [Magic button trick](/projects/magic-button-trick)
* [Hack your headphones](/projects/hack-your-headphones)
* [Banana keyboard](/projects/banana-keyboard)
* [Guitar](/projects/guitar)
* [Duct tape wallet](/projects/wallet)
* [Watch](/projects/watch)
* [Inchworm](/projects/inchworm)
* [Timing gates](/projects/timing-gates)
* [Compass](/projects/compass)
* [Telegraph](/projects/telegraph)
* [Radio](/projects/radio)
* [Code](/examples)
* [Blinky](/examples/blinky)
* [Name tag](/examples/name-tag)
* [Rando](/examples/rando)
* [Plot acceleration](/examples/plot-acceleration)
* [Plot light level](/examples/plot-light-level)
* [Plot analog pin](/examples/plot-analog-pin)
### Reference
* [Reference](/reference.md)
* [Reference](/reference)
* [Basic](/reference/basic)
* [show number](/reference/basic/show-number.md)
* [show icon](/reference/basic/show-icon.md)
* [show leds](/reference/basic/show-leds.md)
* [show string](/reference/basic/show-string.md)
* [clear screen](/reference/basic/clear-screen.md)
* [forever](/reference/basic/forever.md)
* [pause](/reference/basic/pause.md)
* [plot leds](/reference/basic/plot-leds.md)
* [show arrow](/reference/basic/show-arrow.md)
* [show animation](/reference/basic/show-animation.md)
* [show number](/reference/basic/show-number)
* [show icon](/reference/basic/show-icon)
* [show leds](/reference/basic/show-leds)
* [show string](/reference/basic/show-string)
* [clear screen](/reference/basic/clear-screen)
* [forever](/reference/basic/forever)
* [pause](/reference/basic/pause)
* [plot leds](/reference/basic/plot-leds)
* [show arrow](/reference/basic/show-arrow)
* [show animation](/reference/basic/show-animation)
* [Input](/reference/input)
* [on button pressed](/reference/input/on-button-pressed.md)
* [on gesture](/reference/input/on-gesture.md)
* [on pin pressed](/reference/input/on-pin-pressed.md)
* [button is pressed](/reference/input/button-is-pressed.md)
* [compass heading](/reference/input/compass-heading.md)
* [pin is pressed](/reference/input/pin-is-pressed.md)
* [temperature](/reference/input/temperature.md)
* [acceleration](/reference/input/acceleration.md)
* [light level](/reference/input/light-level.md)
* [rotation](/reference/input/rotation.md)
* [magnetic force](/reference/input/magnetic-force.md)
* [running time](/reference/input/running-time.md)
* [set accelerometer range](/reference/input/set-accelerometer-range.md)
* [on button pressed](/reference/input/on-button-pressed)
* [on gesture](/reference/input/on-gesture)
* [on pin pressed](/reference/input/on-pin-pressed)
* [button is pressed](/reference/input/button-is-pressed)
* [compass heading](/reference/input/compass-heading)
* [pin is pressed](/reference/input/pin-is-pressed)
* [temperature](/reference/input/temperature)
* [acceleration](/reference/input/acceleration)
* [light level](/reference/input/light-level)
* [rotation](/reference/input/rotation)
* [magnetic force](/reference/input/magnetic-force)
* [running time](/reference/input/running-time)
* [set accelerometer range](/reference/input/set-accelerometer-range)
* [Music](/reference/music)
* [play tone](/reference/music/play-tone.md)
* [ring tone](/reference/music/ring-tone.md)
* [rest](/reference/music/rest.md)
* [beat](/reference/music/beat.md)
* [tempo](/reference/music/tempo.md)
* [change tempo by](/reference/music/change-tempo-by.md)
* [set tempo](/reference/music/set-tempo.md)
* [play tone](/reference/music/play-tone)
* [ring tone](/reference/music/ring-tone)
* [rest](/reference/music/rest)
* [beat](/reference/music/beat)
* [tempo](/reference/music/tempo)
* [change tempo by](/reference/music/change-tempo-by)
* [set tempo](/reference/music/set-tempo)
* [Led](/reference/led)
* [plot](/reference/led/plot.md)
* [unplot](/reference/led/unplot.md)
* [point](/reference/led/point.md)
* [toggle](/reference/led/toggle.md)
* [brightness](/reference/led/brightness.md)
* [set brightness](/reference/led/set-brightness.md)
* [stop animation](/reference/led/stop-animation.md)
* [plot bar graph](/reference/led/plot-bar-graph.md)
* [enable](/reference/led/enable.md)
* [plot](/reference/led/plot)
* [unplot](/reference/led/unplot)
* [point](/reference/led/point)
* [toggle](/reference/led/toggle)
* [brightness](/reference/led/brightness)
* [set brightness](/reference/led/set-brightness)
* [stop animation](/reference/led/stop-animation)
* [plot bar graph](/reference/led/plot-bar-graph)
* [enable](/reference/led/enable)
* [Radio](/reference/radio)
* [send number](/reference/radio/send-number.md)
* [send value](/reference/radio/send-value.md)
* [send string](/reference/radio/send-string.md)
* [on data packet received](/reference/radio/on data packet received.md)
* [set group](/reference/radio/set-group.md)
* [set transmit power](/reference/radio/set-transmit-power.md)
* [set transmit serial number](/reference/radio/set-transmit-serial-number.md)
* [write received packet to serial](/reference/radio/write-received-packet-to-serial.md)
* [send number](/reference/radio/send-number)
* [send value](/reference/radio/send-value)
* [send string](/reference/radio/send-string)
* [on data packet received](/reference/radio/on-data-packet-received)
* [set group](/reference/radio/set-group)
* [set transmit power](/reference/radio/set-transmit-power)
* [set transmit serial number](/reference/radio/set-transmit-serial-number)
* [write received packet to serial](/reference/radio/write-received-packet-to-serial)
### Blocks
* [Blocks](/blocks.md)
* [Loops](/blocks/loops.md)
* [for](/blocks/loops/for.md)
* [while](/blocks/loops/while.md)
* [forever](/blocks/loops/forever.md)
* [Logic](/blocks/logic.md)
* [if](/blocks/logic/if.md)
* [Boolean](/blocks/logic/boolean.md)
* [Variables](/blocks/variables.md)
* [assign](/blocks/variables/assign.md)
* [change var](/blocks/variables/change-var.md)
* [var](/blocks/variables/var.md)
* [Blocks](/blocks)
* [Loops](/blocks/loops)
* [for](/blocks/loops/for)
* [while](/blocks/loops/while)
* [Logic](/blocks/logic)
* [if](/blocks/logic/if)
* [Boolean](/blocks/logic/boolean)
* [Variables](/blocks/variables)
* [assign](/blocks/variables/assign)
* [change var](/blocks/variables/change-var)
* [var](/blocks/variables/var)
### JavaScript
* [JavaScript](/javascript.md)
* [Calling](/javascript/call.md)
* [Sequencing](/javascript/sequence.md)
* [Variables](/javascript/variables.md)
* [Operators](/javascript/operators.md)
* [Statements](/javascript/statements.md)
* [Functions](/javascript/functions.md)
* [Types](/javascript/types.md)
* [Classes](/javascript/classes.md)
* [JavaScript](/javascript)
* [Calling](/javascript/call)
* [Sequencing](/javascript/sequence)
* [Variables](/javascript/variables)
* [Operators](/javascript/operators)
* [Statements](/javascript/statements)
* [Functions](/javascript/functions)
* [Types](/javascript/types)
* [Classes](/javascript/classes)
### Other
* [Hardware](/device.md)
* [Hardware](/device)
* [FAQ](/faq.md)
* [Help Translate](/translate.md)
* [FAQ](/faq)
* [Help Translate](/translate)

View File

@ -43,5 +43,5 @@ on and `.` means an LED that is turned off.
### See also
[plot leds](/reference/led/plot-leds), [show animation](/reference/basic/show-animation)
[plot leds](/reference/basic/plot-leds), [show animation](/reference/basic/show-animation)

View File

@ -2,9 +2,9 @@
Show a number on the [LED screen](/device/screen). It will slide left if it has more than one digit.
~~~~sig
basic.showNumber(2, 150)
~~~~
```sig
basic.showNumber(2)
```
### Parameters
@ -15,27 +15,27 @@ basic.showNumber(2, 150)
To show the number 10:
~~~~blocks
```blocks
basic.showNumber(10)
~~~~
```
To show the number stored in a variable:
~~~~blocks
```blocks
let x = 1
basic.showNumber(x)
~~~~
```
### Example: count to 5
This example uses a [for](/blocks/loops/for) loop to show numbers ``0`` through ``5`` on the screen:
~~~~blocks
```blocks
for (let i = 0; i < 6; i++) {
basic.showNumber(i)
basic.pause(200)
}
~~~~
```
### Other show functions