No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

controls.c 271B

1234567891011121314151617181920
  1. /*
  2. * controls.c
  3. */
  4. #include "pico/stdlib.h"
  5. #include "config.h"
  6. #include "controls.h"
  7. static bool button_state = false;
  8. void controls_new(int id, bool state) {
  9. (void)id;
  10. button_state = state;
  11. }
  12. bool controls_button_read(void) {
  13. return button_state;
  14. }