Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
Update method to the correct ```flushDigitalPorts()```
  • Loading branch information
dtex authored and rwaldron committed Jan 7, 2019
1 parent c3b2df4 commit 0f0e22d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/firmata.js/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ The `Firmata` constructor creates an instance that represents a physical board.

- `board.digitalWrite(pin,value,enqueue)`

Write an output to a digital pin. pin is the number of the pin and the value is either board.HIGH or board.LOW. enqueue is optional and when true will update the local pin value but will not write the data until `writeQueuedDigitalPorts()` is called.
Write an output to a digital pin. pin is the number of the pin and the value is either board.HIGH or board.LOW. enqueue is optional and when true will update the local pin value but will not write the data until `flushDigitalPorts()` is called.

- `board.writeQueuedDigitalPorts()`
- `board.flushDigitalPorts()`

Directs firmata to update all ports whose values have been changed via digitalWrite with the `enqueue` parameter set to true.

Expand Down

0 comments on commit 0f0e22d

Please sign in to comment.