Add package info to radio docs (for testing)
This commit is contained in:
parent
99d05ec91b
commit
ee37b4a959
@ -33,3 +33,6 @@ radio.onDataReceived(() => {
|
|||||||
[receive number](/reference/radio/receive-number),
|
[receive number](/reference/radio/receive-number),
|
||||||
[send number](/reference/radio/send-number), [set group](/reference/radio/set-group)
|
[send number](/reference/radio/send-number), [set group](/reference/radio/set-group)
|
||||||
|
|
||||||
|
```package
|
||||||
|
microbit-radio
|
||||||
|
```
|
@ -64,3 +64,6 @@ basic.forever(() => {
|
|||||||
|
|
||||||
[send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
[send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||||
|
|
||||||
|
```package
|
||||||
|
microbit-radio
|
||||||
|
```
|
@ -89,3 +89,7 @@ radio.onDataReceived(() => {
|
|||||||
### See also
|
### See also
|
||||||
|
|
||||||
[send string](/reference/radio/send-string), [on data received](/reference/radio/on-data-received)
|
[send string](/reference/radio/send-string), [on data received](/reference/radio/on-data-received)
|
||||||
|
|
||||||
|
```package
|
||||||
|
microbit-radio
|
||||||
|
```
|
@ -38,3 +38,7 @@ basic.forever(() => {
|
|||||||
### See also
|
### See also
|
||||||
|
|
||||||
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||||
|
|
||||||
|
```package
|
||||||
|
microbit-radio
|
||||||
|
```
|
@ -43,3 +43,7 @@ basic.forever(() => {
|
|||||||
### See also
|
### See also
|
||||||
|
|
||||||
[receive number](/reference/radio/receive-number), [on data received](/reference/radio/on-data-received)
|
[receive number](/reference/radio/receive-number), [on data received](/reference/radio/on-data-received)
|
||||||
|
|
||||||
|
```package
|
||||||
|
microbit-radio
|
||||||
|
```
|
@ -40,3 +40,7 @@ A radio that can both transmit and receive is called a _transceiver_.
|
|||||||
### See also
|
### See also
|
||||||
|
|
||||||
[receive string](/reference/radio/receive-string), [on data received](/reference/radio/on-data-received)
|
[receive string](/reference/radio/receive-string), [on data received](/reference/radio/on-data-received)
|
||||||
|
|
||||||
|
```package
|
||||||
|
microbit-radio
|
||||||
|
```
|
@ -44,3 +44,6 @@ radio.onDataReceived(() => {
|
|||||||
|
|
||||||
[receive number](/reference/radio/receive-number), [on data received](/reference/radio/on-data-received)
|
[receive number](/reference/radio/receive-number), [on data received](/reference/radio/on-data-received)
|
||||||
|
|
||||||
|
```package
|
||||||
|
microbit-radio
|
||||||
|
```
|
@ -34,3 +34,6 @@ radio.setGroup(128)
|
|||||||
|
|
||||||
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||||
|
|
||||||
|
```package
|
||||||
|
microbit-radio
|
||||||
|
```
|
@ -38,3 +38,7 @@ radio.setTransmitPower(7)
|
|||||||
### See also
|
### See also
|
||||||
|
|
||||||
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||||
|
|
||||||
|
```package
|
||||||
|
microbit-radio
|
||||||
|
```
|
@ -41,10 +41,17 @@ radio.onDataReceived(() => {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
Sample output to serial when ``A`` button pressed:
|
Sample output to serial when ``A`` button pressed:
|
||||||
```{v:27,t:323,s:0}```
|
|
||||||
|
```Text
|
||||||
|
{v:27,t:323,s:0}
|
||||||
|
```
|
||||||
|
|
||||||
### See also
|
### See also
|
||||||
|
|
||||||
[send number](/reference/radio/send-number),
|
[send number](/reference/radio/send-number),
|
||||||
[send value](/reference/radio/send-value),
|
[send value](/reference/radio/send-value),
|
||||||
[on data received](/reference/radio/on-data-received)
|
[on data received](/reference/radio/on-data-received)
|
||||||
|
|
||||||
|
```package
|
||||||
|
microbit-radio
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user