add nix derivation for compiling with CMAKE
This commit is contained in:
parent
404097a13d
commit
010bb39169
5 changed files with 41 additions and 9 deletions
22
pin_control/include/pin_control.h
Normal file
22
pin_control/include/pin_control.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef GPIO_CONTROL_H
|
||||
#define GPIO_CONTROL_H
|
||||
|
||||
int init_gpio();
|
||||
|
||||
void cleanup_gpio();
|
||||
|
||||
int set_pin_state(int pin, int state);
|
||||
|
||||
int read_button(int pin);
|
||||
|
||||
int turn_on_pin(int pin);
|
||||
|
||||
int turn_off_pin(int pin);
|
||||
|
||||
int turn_on_all_pins();
|
||||
|
||||
int turn_off_all_pins();
|
||||
|
||||
int wait_for_button_press(int button_pin);
|
||||
|
||||
#endif /* GPIO_CONTROL_H */
|
Loading…
Add table
Add a link
Reference in a new issue