triviOS/pin_control/include/pin_control.h
2023-09-13 03:56:25 -06:00

17 lines
336 B
C

#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);
int probe_pin(int pin);
int turn_on_all_pins();
int turn_off_all_pins();
int wait_for_button_press(const unsigned pins[static 5]);
int capture_image(const char *out);
#endif /* GPIO_CONTROL_H */