Fix parameters
This commit is contained in:
parent
a890d2a357
commit
01f80b67bc
@ -9,7 +9,7 @@ serial.writeLine("");
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
* `line` is the [string](/reference/types/string) to write to the serial port
|
* `text` is the [string](/reference/types/string) to write to the serial port
|
||||||
|
|
||||||
### Example: simple serial
|
### Example: simple serial
|
||||||
|
|
||||||
@ -48,4 +48,5 @@ basic.forever(() => {
|
|||||||
|
|
||||||
[serial](/device/serial),
|
[serial](/device/serial),
|
||||||
[serial write number](/reference/serial/write-number),
|
[serial write number](/reference/serial/write-number),
|
||||||
|
[serial write string](/reference/serial/write-string),
|
||||||
[serial write value](/reference/serial/write-value)
|
[serial write value](/reference/serial/write-value)
|
||||||
|
@ -8,7 +8,7 @@ serial.writeNumber(0);
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
* `number` is the [number](/reference/types/number) to write to the serial port
|
* `value` is the [number](/reference/types/number) to write to the serial port
|
||||||
|
|
||||||
### Example: one through ten
|
### Example: one through ten
|
||||||
|
|
||||||
|
@ -6,6 +6,14 @@ Write a name/value pair and a newline character (`\r\n`) to the [serial](/device
|
|||||||
serial.writeValue("x", 0);
|
serial.writeValue("x", 0);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
* `name` is the [string](/reference/types/string) to write to the serial port
|
||||||
|
* `value` is the [number](/reference/types/number) to write to the serial port
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example: streaming data
|
### Example: streaming data
|
||||||
|
|
||||||
Every 10 seconds, the example below sends the temperature and light level
|
Every 10 seconds, the example below sends the temperature and light level
|
||||||
|
Loading…
Reference in New Issue
Block a user