Fix some titles, sigs in ref docs (#2128)

* Fix some title and sigs in ref docs

* better buffer source
This commit is contained in:
Galen Nickel
2019-06-05 16:28:56 -07:00
committed by GitHub
parent 14418569d1
commit 3f106307ff
16 changed files with 53 additions and 66 deletions

View File

@ -26,7 +26,7 @@ The need to pause for more data is set by the @boardname@ **[serial mode](https:
Read character data from the serial port one row at a time. Write the rows to an LED display connected to the I2C pins.
```blocks
```typescript
let rowData: Buffer = null;
for (let i = 0; i < 24; i++) {
rowData = serial.readBuffer(80);

View File

@ -16,7 +16,7 @@ You place your data characters into an existing buffer. All of the data, the len
Read some characters of data from a device connected to the I2C pins. Write the data to the serial port.
```blocks
```typescript
pins.i2cWriteNumber(132, NumberFormat.UInt8LE, 0);
let i2cBuffer = pins.i2cReadBuffer(132, 16, false);
serial.writeBuffer(i2cBuffer);