Skip to content

Commit 43bc0c6

Browse files
bradjcbrghena
andauthored
libtock-sync: buttons doc
Co-authored-by: Branden Ghena <branden.ghena@gmail.com>
1 parent 22f61ed commit 43bc0c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libtock-sync/interface/button.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ returncode_t libtocksync_button_count(int* count);
1919
//
2020
// - `button_num`: The index of the button.
2121
// - `button_value`: Will be set to 1 if button is pressed, 0 otherwise.
22+
//
23+
// ## Return Value
24+
//
25+
// A returncode indicating whether the button wait was completed successfully.
2226
returncode_t libtocksync_button_read(int button_num, int* button_value);
2327

2428
// Wait for a specific button to be pressed.

0 commit comments

Comments
 (0)