@ -8,11 +8,11 @@ Receives the next number sent by a @boardname@ in the same ``radio`` group.
|
||||
radio.receiveNumber();
|
||||
```
|
||||
|
||||
### Returns
|
||||
## Returns
|
||||
|
||||
* the first [number](/types/number) that the @boardname@ received. If it did not receive any numbers, this function will return `0`.
|
||||
|
||||
### Example: Simple number receiver
|
||||
## Example: Simple number receiver
|
||||
|
||||
This example receives the number broadcasted another @boardname@ and shows it
|
||||
as a bar graph.
|
||||
@ -23,7 +23,7 @@ radio.onDataReceived(() => {
|
||||
})
|
||||
```
|
||||
|
||||
### Example: Light level receiver
|
||||
## Example: Light level receiver
|
||||
|
||||
This example shows the light level from the [light level sender example](/reference/radio/send-number)
|
||||
as a number.
|
||||
@ -36,7 +36,7 @@ basic.forever(() => {
|
||||
})
|
||||
```
|
||||
|
||||
### Example: Mailbot
|
||||
## Example: Mailbot
|
||||
|
||||
This example receives the light level from the [light level sender example](/reference/radio/send-number)
|
||||
and shows a text string like **ALERT** if the light level becomes much brighter.
|
||||
@ -58,7 +58,7 @@ basic.forever(() => {
|
||||
})
|
||||
```
|
||||
|
||||
### See also
|
||||
## See also
|
||||
|
||||
[send number](/reference/radio/send-number), [on data received](/reference/radio/on-data-received)
|
||||
|
||||
|
Reference in New Issue
Block a user