My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tft_image.cpp 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. #include "../../inc/MarlinConfigPre.h"
  23. #if HAS_GRAPHICAL_TFT
  24. #include "tft_image.h"
  25. #include "ui_common.h"
  26. const tImage NoLogo = { nullptr, 0, 0, NOCOLORS };
  27. #if ENABLED(SHOW_BOOTSCREEN)
  28. const tImage MarlinLogo112x38x1 = { (void *)marlin_logo_112x38x1, 112, 38, GREYSCALE1 };
  29. const tImage MarlinLogo228x255x2 = { (void *)marlin_logo_228x255x2, 228, 255, GREYSCALE2 };
  30. const tImage MarlinLogo228x255x4 = { (void *)marlin_logo_228x255x4, 228, 255, GREYSCALE4 };
  31. const tImage MarlinLogo195x59x16 = { (void *)marlin_logo_195x59x16, 195, 59, HIGHCOLOR };
  32. const tImage MarlinLogo320x240x16 = { (void *)marlin_logo_320x240x16, 320, 240, HIGHCOLOR };
  33. const tImage MarlinLogo480x320x16 = { (void *)marlin_logo_480x320x16, 480, 320, HIGHCOLOR };
  34. #endif
  35. const tImage Background320x30x16 = { (void *)background_320x30x16, 320, 30, HIGHCOLOR };
  36. const tImage HotEnd_64x64x4 = { (void *)hotend_64x64x4, 64, 64, GREYSCALE4 };
  37. const tImage Bed_64x64x4 = { (void *)bed_64x64x4, 64, 64, GREYSCALE4 };
  38. const tImage Bed_Heated_64x64x4 = { (void *)bed_heated_64x64x4, 64, 64, GREYSCALE4 };
  39. const tImage Chamber_64x64x4 = { (void *)chamber_64x64x4, 64, 64, GREYSCALE4 };
  40. const tImage Chamber_Heated_64x64x4 = { (void *)chamber_heated_64x64x4, 64, 64, GREYSCALE4 };
  41. const tImage Fan0_64x64x4 = { (void *)fan0_64x64x4, 64, 64, GREYSCALE4 };
  42. const tImage Fan1_64x64x4 = { (void *)fan1_64x64x4, 64, 64, GREYSCALE4 };
  43. const tImage Fan_Slow0_64x64x4 = { (void *)fan_slow0_64x64x4, 64, 64, GREYSCALE4 };
  44. const tImage Fan_Slow1_64x64x4 = { (void *)fan_slow1_64x64x4, 64, 64, GREYSCALE4 };
  45. const tImage Fan_Fast0_64x64x4 = { (void *)fan_fast0_64x64x4, 64, 64, GREYSCALE4 };
  46. const tImage Fan_Fast1_64x64x4 = { (void *)fan_fast1_64x64x4, 64, 64, GREYSCALE4 };
  47. const tImage SD_64x64x4 = { (void *)sd_64x64x4, 64, 64, GREYSCALE4 };
  48. const tImage Home_64x64x4 = { (void *)home_64x64x4, 64, 64, GREYSCALE4 };
  49. const tImage BtnRounded_64x52x4 = { (void *)btn_rounded_64x52x4, 64, 52, GREYSCALE4 };
  50. const tImage BtnRounded_42x39x4 = { (void *)btn_rounded_42x39x4, 42, 39, GREYSCALE4 };
  51. const tImage Menu_64x64x4 = { (void *)menu_64x64x4, 64, 64, GREYSCALE4 };
  52. const tImage Settings_64x64x4 = { (void *)settings_64x64x4, 64, 64, GREYSCALE4 };
  53. const tImage Confirm_64x64x4 = { (void *)confirm_64x64x4, 64, 64, GREYSCALE4 };
  54. const tImage Cancel_64x64x4 = { (void *)cancel_64x64x4, 64, 64, GREYSCALE4 };
  55. const tImage Increase_64x64x4 = { (void *)increase_64x64x4, 64, 64, GREYSCALE4 };
  56. const tImage Decrease_64x64x4 = { (void *)decrease_64x64x4, 64, 64, GREYSCALE4 };
  57. const tImage Pause_64x64x4 = { (void *)pause_64x64x4, 64, 64, GREYSCALE4 };
  58. const tImage Feedrate_32x32x4 = { (void *)feedrate_32x32x4, 32, 32, GREYSCALE4 };
  59. const tImage Flowrate_32x32x4 = { (void *)flowrate_32x32x4, 32, 32, GREYSCALE4 };
  60. const tImage Directory_32x32x4 = { (void *)directory_32x32x4, 32, 32, GREYSCALE4 };
  61. const tImage Back_32x32x4 = { (void *)back_32x32x4, 32, 32, GREYSCALE4 };
  62. const tImage Up_32x32x4 = { (void *)up_32x32x4, 32, 32, GREYSCALE4 };
  63. const tImage Down_32x32x4 = { (void *)down_32x32x4, 32, 32, GREYSCALE4 };
  64. const tImage Left_32x32x4 = { (void *)left_32x32x4, 32, 32, GREYSCALE4 };
  65. const tImage Right_32x32x4 = { (void *)right_32x32x4, 32, 32, GREYSCALE4 };
  66. const tImage Refresh_32x32x4 = { (void *)refresh_32x32x4, 32, 32, GREYSCALE4 };
  67. const tImage Leveling_32x32x4 = { (void *)leveling_32x32x4, 32, 32, GREYSCALE4 };
  68. const tImage Slider8x16x4 = { (void *)slider_8x16x4, 8, 16, GREYSCALE4 };
  69. const tImage Images[imgCount] = {
  70. TERN(SHOW_BOOTSCREEN, TERN(BOOT_MARLIN_LOGO_SMALL, MarlinLogo195x59x16, MARLIN_LOGO_FULL_SIZE), NoLogo),
  71. HotEnd_64x64x4,
  72. Bed_64x64x4,
  73. Bed_Heated_64x64x4,
  74. Chamber_64x64x4,
  75. Chamber_Heated_64x64x4,
  76. Fan0_64x64x4,
  77. Fan_Slow0_64x64x4,
  78. Fan_Slow1_64x64x4,
  79. Fan_Fast0_64x64x4,
  80. Fan_Fast1_64x64x4,
  81. Feedrate_32x32x4,
  82. Flowrate_32x32x4,
  83. SD_64x64x4,
  84. Menu_64x64x4,
  85. Settings_64x64x4,
  86. Directory_32x32x4,
  87. Confirm_64x64x4,
  88. Cancel_64x64x4,
  89. Increase_64x64x4,
  90. Decrease_64x64x4,
  91. Back_32x32x4,
  92. Up_32x32x4,
  93. Down_32x32x4,
  94. Left_32x32x4,
  95. Right_32x32x4,
  96. Refresh_32x32x4,
  97. Leveling_32x32x4,
  98. Slider8x16x4,
  99. Home_64x64x4,
  100. BtnRounded_64x52x4,
  101. BtnRounded_42x39x4,
  102. };
  103. #endif // HAS_GRAPHICAL_TFT