My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ubl_tools.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. * UBL Tools and Mesh Viewer for Pro UI
  3. * Version: 1.0.0
  4. * Date: 2022/04/13
  5. *
  6. * Original Author: Henri-J-Norden (https://github.com/Henri-J-Norden)
  7. * Original Source: https://github.com/Jyers/Marlin/pull/135
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation, either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  21. *
  22. */
  23. #pragma once
  24. #include "../../../inc/MarlinConfigPre.h"
  25. //#define USE_UBL_VIEWER 1
  26. #define UBL_Z_OFFSET_MIN -3.0
  27. #define UBL_Z_OFFSET_MAX 3.0
  28. class UBLMeshToolsClass {
  29. public:
  30. #if ENABLED(USE_UBL_VIEWER)
  31. static bool viewer_asymmetric_range;
  32. static bool viewer_print_value;
  33. #endif
  34. static bool goto_mesh_value;
  35. static uint8_t tilt_grid;
  36. #if ENABLED(AUTO_BED_LEVELING_UBL)
  37. static void manual_value_update(const uint8_t mesh_x, const uint8_t mesh_y, bool undefined=false);
  38. static bool create_plane_from_mesh();
  39. #else
  40. static void manual_value_update(const uint8_t mesh_x, const uint8_t mesh_y);
  41. #endif
  42. static void manual_move(const uint8_t mesh_x, const uint8_t mesh_y, bool zmove=false);
  43. static float get_max_value();
  44. static float get_min_value();
  45. static bool validate();
  46. #if ENABLED(USE_UBL_VIEWER)
  47. static void Draw_Bed_Mesh(int16_t selected = -1, uint8_t gridline_width = 1, uint16_t padding_x = 8, uint16_t padding_y_top = 40 + 53 - 7);
  48. static void Set_Mesh_Viewer_Status();
  49. #endif
  50. };
  51. extern UBLMeshToolsClass ubl_tools;
  52. void Goto_MeshViewer();