DIY fertilizer mixer and plant watering machine https://www.xythobuz.de/giessomat.html
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Functionality.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright (c) 2021 Thomas Buck <thomas@xythobuz.de>
  3. *
  4. * This file is part of Giess-o-mat.
  5. *
  6. * Giess-o-mat is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Giess-o-mat is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Giess-o-mat. If not, see <https://www.gnu.org/licenses/>.
  18. */
  19. #ifndef _FUNCTIONALITY_H_
  20. #define _FUNCTIONALITY_H_
  21. #ifdef FUNCTION_UI
  22. void ui_setup(void);
  23. void ui_run(void);
  24. #endif // FUNCTION_UI
  25. // ----------------------------------------------------------------------------
  26. #ifdef FUNCTION_CONTROL
  27. #include "Plants.h"
  28. void control_setup(void);
  29. void control_begin(void);
  30. void control_run(void);
  31. const char *control_state_name(void);
  32. void control_act_input(int n);
  33. Plants *get_plants(void);
  34. #endif // FUNCTION_CONTROL
  35. // ----------------------------------------------------------------------------
  36. void blink_lcd(int n, int wait = 200);
  37. void write_to_all(const char *a, const char *b,
  38. const char *c, const char *d, int num_input);
  39. void backspace(void);
  40. #endif // _FUNCTIONALITY_H_