Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo: conatin => contain #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ string.
- addr - I2C device address
- length - an integer specifying the number of bytes to read
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance that the data will be written to (must conatin at least length bytes)
instance that the data will be written to (must contain at least length bytes)
- cb - completion callback

Asynchronous plain I2C read. The callback gets three argument (err, bytesRead, buffer).
Expand All @@ -401,15 +401,15 @@ bytesRead is the number of bytes read.
- addr - I2C device address
- length - an integer specifying the number of bytes to read
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance that the data will be written to (must conatin at least length bytes)
instance that the data will be written to (must contain at least length bytes)

Synchronous plain I2C read. Returns the number of bytes read.

### bus.i2cWrite(addr, length, buffer, cb)
- addr - I2C device address
- length - an integer specifying the number of bytes to write
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance containing the data to write (must conatin at least length bytes)
instance containing the data to write (must contain at least length bytes)
- cb - completion callback

Asynchronous plain I2C write. The callback gets three argument (err, bytesWritten, buffer).
Expand All @@ -419,7 +419,7 @@ bytesWritten is the number of bytes written.
- addr - I2C device address
- length - an integer specifying the number of bytes to write
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html) instance
containing the data to write (must conatin at least length bytes)
containing the data to write (must contain at least length bytes)

Synchronous plain I2C write. Returns the number of bytes written.

Expand Down Expand Up @@ -458,7 +458,7 @@ integer in the range 0 to 65535.
- cmd - command code
- length - an integer specifying the number of bytes to read (max 32)
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance that the data will be written to (must conatin at least length bytes)
instance that the data will be written to (must contain at least length bytes)
- cb - completion callback

Asynchronous I2C block read (not defined by the SMBus specification). Reads a
Expand All @@ -471,7 +471,7 @@ the number of bytes read.
- cmd - command code
- length - an integer specifying the number of bytes to read (max 32)
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance that the data will be written to (must conatin at least length bytes)
instance that the data will be written to (must contain at least length bytes)

Synchronous I2C block read (not defined by the SMBus specification). Reads a
block of bytes from a device, from a designated register that is specified by
Expand Down Expand Up @@ -552,7 +552,7 @@ Synchronous SMBus quick command. Writes a single bit to the device.
- cmd - command code
- length - an integer specifying the number of bytes to write (max 32)
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance containing the data to write (must conatin at least length bytes)
instance containing the data to write (must contain at least length bytes)
- cb - completion callback

Asynchronous I2C block write (not defined by the SMBus specification). Writes a
Expand All @@ -565,7 +565,7 @@ the number of bytes written.
- cmd - command code
- length - an integer specifying the number of bytes to write (max 32)
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance containing the data to write (must conatin at least length bytes)
instance containing the data to write (must contain at least length bytes)

Synchronous I2C block write (not defined by the SMBus specification). Writes a
block of bytes to a device, to a designated register that is specified by cmd.
Expand Down Expand Up @@ -614,7 +614,7 @@ numbers, `name` is a string.
- addr - I2C device address
- length - an integer specifying the number of bytes to read
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance that the data will be written to (must conatin at least length bytes)
instance that the data will be written to (must contain at least length bytes)

Asynchronous plain I2C read. Returns a Promise that on success will be
resolved with an object with a bytesRead property identifying the number of
Expand All @@ -625,7 +625,7 @@ argument. The returned Promise will be rejected if an error occurs.
- addr - I2C device address
- length - an integer specifying the number of bytes to write
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance containing the data to write (must conatin at least length bytes)
instance containing the data to write (must contain at least length bytes)

Asynchronous plain I2C write. Returns a Promise that on success will be
resolved with an object with a bytesWritten property identifying the number of
Expand Down Expand Up @@ -653,7 +653,7 @@ occurs. word is an unsigned integer in the range 0 to 65535.
- cmd - command code
- length - an integer specifying the number of bytes to read (max 32)
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance that the data will be written to (must conatin at least length bytes)
instance that the data will be written to (must contain at least length bytes)

Asynchronous I2C block read (not defined by the SMBus specification). Reads a
block of bytes from a device, from a designated register that is specified by
Expand Down Expand Up @@ -705,7 +705,7 @@ rejected if an error occurs.
- cmd - command code
- length - an integer specifying the number of bytes to write (max 32)
- buffer - the [Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)
instance containing the data to write (must conatin at least length bytes)
instance containing the data to write (must contain at least length bytes)

Asynchronous I2C block write (not defined by the SMBus specification). Writes a
block of bytes to a device, to a designated register that is specified by cmd.
Expand Down