My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

adjuster_widget.h 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*********************
  2. * adjuster_widget.h *
  3. *********************/
  4. /****************************************************************************
  5. * Written By Marcio Teixeira 2021 - Cocoa Press *
  6. * *
  7. * This program is free software: you can redistribute it and/or modify *
  8. * it under the terms of the GNU General Public License as published by *
  9. * the Free Software Foundation, either version 3 of the License, or *
  10. * (at your option) any later version. *
  11. * *
  12. * This program is distributed in the hope that it will be useful, *
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  15. * GNU General Public License for more details. *
  16. * *
  17. * To view a copy of the GNU General Public License, go to the following *
  18. * location: <https://www.gnu.org/licenses/>. *
  19. ****************************************************************************/
  20. #pragma once
  21. #include "../extended/screen_types.h"
  22. void draw_adjuster_value(
  23. CommandProcessor& cmd,
  24. int16_t x, int16_t y, int16_t w, int16_t h,
  25. float value, progmem_str units = nullptr,
  26. int8_t width = 5, uint8_t precision = 1
  27. );
  28. void draw_adjuster(
  29. CommandProcessor& cmd,
  30. int16_t x, int16_t y, int16_t w, int16_t h,
  31. uint8_t tag,
  32. float value, progmem_str units = nullptr,
  33. int8_t width = 5, uint8_t precision = 1,
  34. draw_mode_t what = BOTH
  35. );