My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. #include "../../inc/MarlinConfigPre.h"
  24. #include "tft.h"
  25. #include "tft_image.h"
  26. #if ENABLED(TOUCH_SCREEN)
  27. #include "touch.h"
  28. #endif
  29. void draw_heater_status(uint16_t x, uint16_t y, const int8_t Heater);
  30. void draw_fan_status(uint16_t x, uint16_t y, const bool blink);
  31. #define MENU_TEXT_X_OFFSET 10
  32. #define MENU_TEXT_Y_OFFSET 7
  33. void menu_line(const uint8_t row, uint16_t color = COLOR_BACKGROUND);
  34. void menu_item(const uint8_t row, bool sel = false);
  35. #define MENU_FONT_NAME Helvetica14
  36. #define SYMBOLS_FONT_NAME Helvetica14_symbols
  37. #define ABSOLUTE_ZERO -273.15
  38. const tImage Images[imgCount] = {
  39. MarlinLogo320x240x16,
  40. HotEnd_64x64x4,
  41. Bed_64x64x4,
  42. Bed_Heated_64x64x4,
  43. Chamber_64x64x4,
  44. Chamber_Heated_64x64x4,
  45. Fan0_64x64x4,
  46. Fan_Slow0_64x64x4,
  47. Fan_Slow1_64x64x4,
  48. Fan_Fast0_64x64x4,
  49. Fan_Fast1_64x64x4,
  50. Feedrate_32x32x4,
  51. Flowrate_32x32x4,
  52. SD_64x64x4,
  53. Menu_64x64x4,
  54. Settings_64x64x4,
  55. Directory_32x32x4,
  56. Confirm_64x64x4,
  57. Cancel_64x64x4,
  58. Increase_64x64x4,
  59. Decrease_64x64x4,
  60. Back_32x32x4,
  61. Up_32x32x4,
  62. Down_32x32x4,
  63. Left_32x32x4,
  64. Right_32x32x4,
  65. Refresh_32x32x4,
  66. Leveling_32x32x4,
  67. Slider8x16x4,
  68. Home_64x64x4,
  69. BtnRounded_64x52x4,
  70. };
  71. #if HAS_TEMP_CHAMBER && HOTENDS > 1
  72. #define ITEM_E0 0
  73. #define ITEM_E1 1
  74. #define ITEM_BED 2
  75. #define ITEM_CHAMBER 3
  76. #define ITEM_FAN 4
  77. #define ITEMS_COUNT 5
  78. #define POS_Y 0
  79. #elif HAS_TEMP_CHAMBER
  80. #define ITEM_E0 0
  81. #define ITEM_BED 1
  82. #define ITEM_CHAMBER 2
  83. #define ITEM_FAN 3
  84. #define ITEMS_COUNT 4
  85. #define POS_Y 0
  86. #elif HOTENDS > 1
  87. #define ITEM_E0 0
  88. #define ITEM_E1 1
  89. #define ITEM_BED 2
  90. #define ITEM_FAN 3
  91. #define ITEMS_COUNT 4
  92. #define POS_Y 0
  93. #else
  94. #define ITEM_E0 0
  95. #define ITEM_BED 1
  96. #define ITEM_FAN 2
  97. #define ITEMS_COUNT 3
  98. #define POS_Y 0
  99. #endif