暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }