Skip to content

Commit

Permalink
docs: add rotate transform
Browse files Browse the repository at this point in the history
  • Loading branch information
nullptr authored and LynnL4 committed May 22, 2024
1 parent 2b40981 commit 2d6ee6e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/protocol/at_protocol.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AT Protocol Specification v2023.04.12
# AT Protocol Specification v2023.05.15


## Transmission Layer
Expand Down Expand Up @@ -646,6 +646,17 @@ Response:
}\n
```

Note:
- The type of `OPT_ID` is `uint16_t` by default.
- You can set the rotate angle by `OPT_ID` for some sensors, the rotate angle is a multiple of 90 degrees, the default value is `0`.
- The rotate angle options table is here:
| Rotate Angle | Bits | Value |
|--------------|-----------------|-------|
| `0` | `None` | `0` |
| `90` | `OPT_ID[12:12]` | `1` |
| `180` | `OPT_ID[13:13]` | `1` |
| `270` | `OPT_ID[14:14]` | `1` |

#### Sample data from current sensor

Pattern: `AT+SAMPLE=<N_TIMES>\r`
Expand Down

0 comments on commit 2d6ee6e

Please sign in to comment.