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.h 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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 <stdint.h>
  25. extern const uint8_t marlin_logo_112x38x1[];
  26. extern const uint8_t marlin_logo_228x255x2[];
  27. extern const uint8_t marlin_logo_228x255x4[];
  28. extern const uint16_t marlin_logo_195x59x16[];
  29. extern const uint16_t marlin_logo_320x240x16[];
  30. extern const uint16_t marlin_logo_480x320x16[];
  31. extern const uint16_t background_320x30x16[];
  32. extern const uint8_t hotend_64x64x4[];
  33. extern const uint8_t bed_64x64x4[], bed_heated_64x64x4[];
  34. extern const uint8_t chamber_64x64x4[], chamber_heated_64x64x4[];
  35. extern const uint8_t fan0_64x64x4[], fan1_64x64x4[];
  36. extern const uint8_t fan_slow0_64x64x4[], fan_slow1_64x64x4[];
  37. extern const uint8_t fan_fast0_64x64x4[], fan_fast1_64x64x4[];
  38. extern const uint8_t sd_64x64x4[];
  39. extern const uint8_t home_64x64x4[];
  40. extern const uint8_t btn_rounded_64x52x4[];
  41. extern const uint8_t btn_rounded_42x39x4[];
  42. extern const uint8_t menu_64x64x4[];
  43. extern const uint8_t settings_64x64x4[];
  44. extern const uint8_t confirm_64x64x4[];
  45. extern const uint8_t cancel_64x64x4[];
  46. extern const uint8_t increase_64x64x4[];
  47. extern const uint8_t decrease_64x64x4[];
  48. extern const uint8_t pause_64x64x4[];
  49. extern const uint8_t feedrate_32x32x4[];
  50. extern const uint8_t flowrate_32x32x4[];
  51. extern const uint8_t directory_32x32x4[];
  52. extern const uint8_t back_32x32x4[];
  53. extern const uint8_t up_32x32x4[];
  54. extern const uint8_t down_32x32x4[];
  55. extern const uint8_t left_32x32x4[];
  56. extern const uint8_t right_32x32x4[];
  57. extern const uint8_t refresh_32x32x4[];
  58. extern const uint8_t leveling_32x32x4[];
  59. extern const uint8_t slider_8x16x4[];
  60. enum MarlinImage : uint8_t {
  61. imgBootScreen = 0x00,
  62. imgHotEnd,
  63. imgBed,
  64. imgBedHeated,
  65. imgChamber,
  66. imgChamberHeated,
  67. imgFanIdle,
  68. imgFanSlow0,
  69. imgFanSlow1,
  70. imgFanFast0,
  71. imgFanFast1,
  72. imgFeedRate,
  73. imgFlowRate,
  74. imgSD,
  75. imgMenu,
  76. imgSettings,
  77. imgDirectory,
  78. imgConfirm,
  79. imgCancel,
  80. imgIncrease,
  81. imgDecrease,
  82. imgBack,
  83. imgUp,
  84. imgDown,
  85. imgLeft,
  86. imgRight,
  87. imgRefresh,
  88. imgLeveling,
  89. imgSlider,
  90. imgHome,
  91. imgBtn52Rounded,
  92. imgBtn39Rounded,
  93. imgCount,
  94. noImage = imgCount,
  95. imgPageUp = imgLeft,
  96. imgPageDown = imgRight
  97. };
  98. enum colorMode_t : uint8_t {
  99. NOCOLORS = 0x00,
  100. MONOCHROME = 0x01, // 1 bit per pixel
  101. GREYSCALE1 = 0x01, // 1 bit per pixel
  102. GREYSCALE2, // 2 bits per pixel
  103. GREYSCALE4, // 4 bits per pixel
  104. HIGHCOLOR // 16 bits per pixel
  105. };
  106. typedef colorMode_t ColorMode;
  107. #ifdef __AVR__
  108. #define IMG_PACKED __attribute__((__packed__))
  109. #else
  110. #define IMG_PACKED
  111. #endif
  112. typedef struct IMG_PACKED {
  113. void *data;
  114. uint16_t width;
  115. uint16_t height;
  116. colorMode_t colorMode;
  117. } tImage;
  118. extern const tImage NoLogo;
  119. #if ENABLED(SHOW_BOOTSCREEN)
  120. extern const tImage MarlinLogo112x38x1;
  121. extern const tImage MarlinLogo228x255x2;
  122. extern const tImage MarlinLogo228x255x4;
  123. extern const tImage MarlinLogo195x59x16;
  124. extern const tImage MarlinLogo320x240x16;
  125. extern const tImage MarlinLogo480x320x16;
  126. #endif
  127. extern const tImage Background320x30x16;
  128. extern const tImage HotEnd_64x64x4;
  129. extern const tImage Bed_64x64x4;
  130. extern const tImage Bed_Heated_64x64x4;
  131. extern const tImage Chamber_64x64x4;
  132. extern const tImage Chamber_Heated_64x64x4;
  133. extern const tImage Fan0_64x64x4;
  134. extern const tImage Fan1_64x64x4;
  135. extern const tImage Fan_Slow0_64x64x4;
  136. extern const tImage Fan_Slow1_64x64x4;
  137. extern const tImage Fan_Fast0_64x64x4;
  138. extern const tImage Fan_Fast1_64x64x4;
  139. extern const tImage SD_64x64x4;
  140. extern const tImage Home_64x64x4;
  141. extern const tImage BtnRounded_64x52x4;
  142. extern const tImage BtnRounded_42x39x4;
  143. extern const tImage Menu_64x64x4;
  144. extern const tImage Settings_64x64x4;
  145. extern const tImage Confirm_64x64x4;
  146. extern const tImage Cancel_64x64x4;
  147. extern const tImage Increase_64x64x4;
  148. extern const tImage Decrease_64x64x4;
  149. extern const tImage Pause_64x64x4;
  150. extern const tImage Feedrate_32x32x4;
  151. extern const tImage Flowrate_32x32x4;
  152. extern const tImage Directory_32x32x4;
  153. extern const tImage Back_32x32x4;
  154. extern const tImage Up_32x32x4;
  155. extern const tImage Down_32x32x4;
  156. extern const tImage Left_32x32x4;
  157. extern const tImage Right_32x32x4;
  158. extern const tImage Refresh_32x32x4;
  159. extern const tImage Leveling_32x32x4;
  160. extern const tImage Slider8x16x4;
  161. extern const tImage Images[imgCount];