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 4.8KB

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