triviOS/pin_control/include/pin_control.h

17 lines
336 B
C
Raw Permalink Normal View History

2023-09-11 10:05:35 +02:00
#ifndef GPIO_CONTROL_H
#define GPIO_CONTROL_H
int init_gpio();
void cleanup_gpio();
int turn_on_pin(int pin);
int turn_off_pin(int pin);
2023-09-13 07:37:22 +02:00
int probe_pin(int pin);
2023-09-11 10:05:35 +02:00
int turn_on_all_pins();
int turn_off_all_pins();
2023-09-13 04:49:03 +02:00
int wait_for_button_press(const unsigned pins[static 5]);
2023-09-11 10:05:35 +02:00
2023-09-13 11:56:25 +02:00
int capture_image(const char *out);
2023-09-11 10:05:35 +02:00
#endif /* GPIO_CONTROL_H */