fixing references / snippets
cleanup "snippets" compilation state
This commit is contained in:
@@ -32,7 +32,7 @@ bluetooth.uartWriteValue("", 0);
|
||||
```
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
### Advanced
|
||||
|
||||
@@ -95,5 +95,5 @@ https://www.youtube.com/watch?v=aep_GVowKfs
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
@@ -96,5 +96,5 @@ If you do find yourself needing to pair again you will first need to remove the
|
||||
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
@@ -33,5 +33,5 @@ http://www.youtube.com/watch?v=HyBcsD9Eh6I
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
@@ -33,5 +33,5 @@ http://www.youtube.com/watch?v=HyBcsD9Eh6I
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -38,5 +38,5 @@ For more advanced information on the micro:bit Bluetooth accelerometer service i
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -42,5 +42,5 @@ For more advanced information on the micro:bit Bluetooth button service includin
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -36,5 +36,5 @@ For more advanced information on the micro:bit Bluetooth IO pin service includin
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -38,5 +38,5 @@ For more advanced information on the micro:bit Bluetooth LED service including i
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -39,5 +39,5 @@ For more advanced information on the micro:bit Bluetooth magnetometer service in
|
||||
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -39,6 +39,6 @@ For more advanced information on the micro:bit Bluetooth temperature service inc
|
||||
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
|
||||
@@ -40,5 +40,5 @@ For more advanced information on the micro:bit Bluetooth UART service including
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -48,5 +48,5 @@ For more advanced information on the micro:bit Bluetooth UART service including
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -24,5 +24,5 @@ For more advanced information on the micro:bit Bluetooth UART service including
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -47,5 +47,5 @@ For more advanced information on the micro:bit Bluetooth UART service including
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -24,5 +24,5 @@ For more advanced information on the micro:bit Bluetooth UART service including
|
||||
[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com)
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
bluetooth
|
||||
```
|
||||
|
||||
@@ -19,7 +19,7 @@ devices.onSignalStrengthChanged(() => {
|
||||
```
|
||||
|
||||
```package
|
||||
microbit-devices
|
||||
devices
|
||||
```
|
||||
|
||||
### See Also
|
||||
|
||||
@@ -23,5 +23,5 @@ devices.onGamepadButton(MesDpadButtonInfo.ADown, () => {})
|
||||
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [signal strength](/reference/devices/signal-strength), [on signal strength changed](/reference/devices/on-signal-strength-changed)
|
||||
|
||||
```package
|
||||
microbit-devices
|
||||
devices
|
||||
```
|
||||
@@ -34,5 +34,5 @@ devices.onNotified(MesDeviceInfo.IncomingCall, () => {
|
||||
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [signal strength](/reference/devices/signal-strength)
|
||||
|
||||
```package
|
||||
microbit-devices
|
||||
devices
|
||||
```
|
||||
@@ -34,5 +34,5 @@ devices.onSignalStrengthChanged(() => {
|
||||
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [signal strength](/reference/devices/signal-strength)
|
||||
|
||||
```package
|
||||
microbit-devices
|
||||
devices
|
||||
```
|
||||
@@ -62,5 +62,5 @@ devices.raiseAlertTo("ring alarm")
|
||||
[tell remote control to](/reference/devices/tell-remote-control-to), [tell camera to](/reference/devices/tell-camera-to)
|
||||
|
||||
```package
|
||||
microbit-devices
|
||||
devices
|
||||
```
|
||||
@@ -33,5 +33,5 @@ devices.onSignalStrengthChanged(() => {
|
||||
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [on signal strength changed](/reference/devices/on-signal-strength-changed)
|
||||
|
||||
```package
|
||||
microbit-devices
|
||||
devices
|
||||
```
|
||||
@@ -73,5 +73,5 @@ devices.tellCameraTo("stop video mode")
|
||||
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to)
|
||||
|
||||
```package
|
||||
microbit-devices
|
||||
devices
|
||||
```
|
||||
|
||||
@@ -86,5 +86,5 @@ devices.tellRemoteControlTo("volume down")
|
||||
|
||||
|
||||
```package
|
||||
microbit-devices
|
||||
devices
|
||||
```
|
||||
|
||||
@@ -33,12 +33,12 @@ basic.forever(() => {
|
||||
This program measures the temperature using Fahrenheit degrees.
|
||||
Fahrenheit is a way of measuring temperature that is commonly used in the United States.
|
||||
To make a Celsius temperature into a Fahrenheit one, multiply the Celsius temperature by
|
||||
1.8 and add 32.
|
||||
``18``, divide by ``10`` and add ``32``.
|
||||
|
||||
```blocks
|
||||
basic.forever(() => {
|
||||
let c = input.temperature()
|
||||
let f = (c * 1.8) + 32
|
||||
let f = (c * 18) / 10 + 32
|
||||
basic.showNumber(f)
|
||||
})
|
||||
```
|
||||
|
||||
@@ -20,7 +20,7 @@ radio.writeValueToSerial();
|
||||
```
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
|
||||
### See Also
|
||||
|
||||
@@ -34,5 +34,5 @@ radio.onDataReceived(() => {
|
||||
[send number](/reference/radio/send-number), [set group](/reference/radio/set-group)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
@@ -65,5 +65,5 @@ basic.forever(() => {
|
||||
[send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
@@ -91,5 +91,5 @@ radio.onDataReceived(() => {
|
||||
[send string](/reference/radio/send-string), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
@@ -40,5 +40,5 @@ basic.forever(() => {
|
||||
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
@@ -45,5 +45,5 @@ basic.forever(() => {
|
||||
[receive number](/reference/radio/receive-number), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
@@ -42,5 +42,5 @@ A radio that can both transmit and receive is called a _transceiver_.
|
||||
[receive string](/reference/radio/receive-string), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
@@ -45,5 +45,5 @@ radio.onDataReceived(() => {
|
||||
[receive number](/reference/radio/receive-number), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
@@ -35,5 +35,5 @@ radio.setGroup(128)
|
||||
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
@@ -40,5 +40,5 @@ radio.setTransmitPower(7)
|
||||
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
@@ -27,5 +27,5 @@ radio.setTransmitSerialNumber(true);
|
||||
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
@@ -53,5 +53,5 @@ Sample output to serial when ``A`` button pressed:
|
||||
[on data received](/reference/radio/on-data-received)
|
||||
|
||||
```package
|
||||
microbit-radio
|
||||
radio
|
||||
```
|
||||
Reference in New Issue
Block a user