menu_functions.cpp 361 B

1234567891011121314151617181920212223242526272829303132
  1. #include "stm32g4xx_hal.h"
  2. #include "menu_functions.h"
  3. #include "menu_items.h"
  4. #include "menu.h"
  5. #include "config.h"
  6. #include "FreeRTOS.h"
  7. #include "task.h"
  8. extern bool update_flag;
  9. //
  10. void button_left(void)
  11. {
  12. menuChange(PREVIOUS, false);
  13. }
  14. //
  15. void button_right(void)
  16. {
  17. menuChange(NEXT, true);
  18. }
  19. //
  20. void button_enter(void)
  21. {
  22. menuFocus();
  23. }