triviOS/pin_control/main.c

14 lines
251 B
C
Raw Normal View History

2023-09-11 10:05:35 +02:00
#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;
}