14 lines
251 B
C
14 lines
251 B
C
#include "pin_control.h"
|
|
|
|
int main() {
|
|
int button_pin = 5;
|
|
int button_response;
|
|
|
|
|
|
button_response = wait_for_button_press(button_pin);
|
|
printf("Button press detected on pin: %d\n", button_response);
|
|
|
|
cleanup_gpio();
|
|
return 0;
|
|
}
|