Fix parameters

This commit is contained in:
Ron Hale-Evans 2016-07-11 11:13:13 -07:00
parent a890d2a357
commit 01f80b67bc
3 changed files with 11 additions and 2 deletions

View File

@ -9,7 +9,7 @@ serial.writeLine("");
### 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
@ -48,4 +48,5 @@ basic.forever(() => {
[serial](/device/serial),
[serial write number](/reference/serial/write-number),
[serial write string](/reference/serial/write-string),
[serial write value](/reference/serial/write-value)

View File

@ -8,7 +8,7 @@ serial.writeNumber(0);
### 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

View File

@ -6,6 +6,14 @@ Write a name/value pair and a newline character (`\r\n`) to the [serial](/device
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
Every 10 seconds, the example below sends the temperature and light level