Skip to content

Commit

Permalink
Small corrections for physical README
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewn authored Oct 31, 2018
1 parent 0fc6ad8 commit 0d715a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions services/physical/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ There are example configs in the `config` directory to use as a basis.

For example, a button with id "power" will emit the following when pressed:

`physical/event/button/power/press`
`physical/event/button-power-press`

### Command a component

Expand All @@ -52,7 +52,7 @@ For example, a button with id "power" will emit the following when pressed:
For example, change an "ledrgb" called "power" colour to green:

Topic: `physical/command/ledrgb-power-colour`
Payload: `{ rgb: [0, 255, 0]}`
Payload: `{ isOn: true, color: [0, 255, 0]}`

## Available components, events and commands

Expand Down Expand Up @@ -93,10 +93,10 @@ Emits an event with name `status` containing the state of the LED.

Color values can be:

| Any CSS color name string | "red", "green", "blue"|
| Hexadecimal color strings | "ff0000", "00ff00", "0000ff"|
| Hexadecimal color strings, w/ leading # | "#ff0000", "#00ff00", "#0000ff"|
| Array of values 0-255 | [255, 128, 4] |
* Any CSS color name string e.g. `"red"`, `"green"`, `"blue"`
* Hexadecimal color strings e.g. `"ff0000"`, `"00ff00"`, `"0000ff"`
* Hexadecimal color strings, w/ leading `#` e.g. `"#ff0000"`, `"#00ff00"`, `"#0000ff"`
* Array of values 0-255 e.g. `[255, 128, 4]`

### Rotary Encoder

Expand Down

0 comments on commit 0d715a9

Please sign in to comment.