Skip to content

Commit 66200f1

Browse files
committed
Update API docs ♻️
1 parent c70097d commit 66200f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ Represents a Modulino Knob module.
9090
- **`bool isPressed()`**
9191
Returns `true` if the button on the knob is pressed, `false` otherwise.
9292

93+
- **`int8_t getDirection()`**
94+
Returns the direction of the knob rotation.
95+
- `1` for clockwise
96+
- `-1` for counter-clockwise
97+
9398
- **`void set(int16_t value)`**
9499
Sets the knob value.
95100

0 commit comments

Comments
 (0)