Skip to content

Commit b8a67c7

Browse files
committed
Update API docs ♻️
1 parent 59aef64 commit b8a67c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Represents a Modulino Buttons module.
3333
- **`PinStatus isPressed(int index)`**
3434
Returns the press status (HIGH/LOW) of the button at the specified index (_0-A, 1-B, 2-C_).
3535

36+
- **`PinStatus isPressed(char button)`**
37+
Returns the press status (HIGH/LOW) of the button specified by its character ('A', 'B', 'C').
38+
39+
- **`PinStatus isPressed(const char *button)`**
40+
Returns the press status (HIGH/LOW) of the button specified by its string ("A", "B", "C").
41+
3642
- **`bool update()`**
3743
Updates the button status. Returns `true` if the status has changed, `false` otherwise.
3844

0 commit comments

Comments
 (0)