Skip to content

Commit cda554f

Browse files
authored
Merge pull request #2 from amperka/fix-api
fixed last lexical mistakes
2 parents 4ebed37 + f5f9826 commit cda554f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

API.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ Sets the state ("on" or "off") of one power switch.
3838

3939
### `void digitalWrite8(uint8_t value, uint8_t device = 0)`
4040

41-
Sets state (turn-on or turn-off) for all power switches at once.
41+
Sets the state ("on" or "off") of all power switches at once.
4242

43-
- `value`: 8-bit value for all of 8 power switches. One bit for one channel: 1 is turn-on and 0 is turn-off. For example: `0b10101010`.
43+
- `value`: 8-bit value for all of 8 power switches. One bit for one channel: 1 is "on" and 0 is "off". For example: `0b10101010`.
4444
- `device`: the index of the affected Octofet in the daisy-chain. Ranges from `0` to `n - 1`, where `n` is the number of Octofets in the chain. If omitted, targets Octofet nearest to the controller.
4545

4646
### `bool getChannelState(uint8_t channel, uint8_t device = 0)`
@@ -52,4 +52,4 @@ Returns the last (i.e., current) set state for one power switch of the device. R
5252

5353
### `uint8_t getChannelState8(uint8_t device = 0)`
5454

55-
Returns 8-bit value of the last (i.e., current) set state for all 8 power switches of the device at once. One bit for one channel: 1 is turn-on and 0 is turn-off. For example: `0b10101010`. The argument `device` is the index of the affected Octofet in the daisy-chain. Ranges from `0` to `n - 1`, where `n` is the number of Octofets in the chain. If omitted, targets Octofet nearest to the controller.
55+
Returns 8-bit value of the last (i.e., current) set state for all 8 power switches of the device at once. One bit for one channel: 1 is "on" and 0 is "off". For example: `0b10101010`. The argument `device` is the index of the affected Octofet in the daisy-chain. Ranges from `0` to `n - 1`, where `n` is the number of Octofets in the chain. If omitted, targets Octofet nearest to the controller.

0 commit comments

Comments
 (0)