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

dogm_Statusscreen.h 65KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746
  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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Standard Marlin Status Screen bitmaps
  25. *
  26. * Use the Marlin Bitmap Converter to make your own:
  27. * http://marlinfw.org/tools/u8glib/converter.html
  28. */
  29. #include "../../inc/MarlinConfig.h"
  30. #include "ultralcd_DOGM.h"
  31. #define BW(N) ((N + 7) / 8)
  32. #if ENABLED(CUSTOM_STATUS_SCREEN_IMAGE) && DISABLED(STATUS_COMBINE_HEATERS)
  33. #undef STATUS_HEATERS_X
  34. #undef STATUS_BED_X
  35. /**
  36. * Custom _Statusscreen.h files can define:
  37. * - A custom logo image
  38. * - A custom heater bitmap
  39. * - A custom fan bitmap / animation
  40. *
  41. * See the included examples for guidance
  42. */
  43. #include "../../../_Statusscreen.h"
  44. #ifdef STATUS_SCREENWIDTH
  45. #error "Your custom _Statusscreen.h needs to be converted for Marlin 2.0."
  46. #endif
  47. #endif
  48. //
  49. // Default Status Screen Heater or Hotends bitmaps
  50. //
  51. #if !STATUS_HEATERS_WIDTH && !STATUS_HOTEND1_WIDTH
  52. #if ENABLED(STATUS_COMBINE_HEATERS)
  53. #undef STATUS_HOTEND_ANIM
  54. #undef STATUS_BED_ANIM
  55. #define STATUS_HEATERS_XSPACE 24
  56. //
  57. // Status Screen Combined Heater bitmaps
  58. //
  59. #if HAS_HEATED_BED && HOTENDS <= 4
  60. #if HOTENDS == 0
  61. #define STATUS_HEATERS_WIDTH 96
  62. const unsigned char status_heaters_bmp[] PROGMEM = {
  63. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
  64. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000010,B00001000,B00100000,
  65. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000010,B00001000,B00100000,
  66. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
  67. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001000,B00100000,B10000000,
  68. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00010000,B01000001,B00000000,
  69. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00010000,B01000001,B00000000,
  70. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001000,B00100000,B10000000,
  71. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
  72. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
  73. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111000,
  74. B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111000
  75. };
  76. #elif HOTENDS == 1
  77. #define STATUS_HEATERS_WIDTH 96
  78. const unsigned char status_heaters_bmp[] PROGMEM = {
  79. B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
  80. B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000010,B00001000,B00100000,
  81. B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000010,B00001000,B00100000,
  82. B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
  83. B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001000,B00100000,B10000000,
  84. B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00010000,B01000001,B00000000,
  85. B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00010000,B01000001,B00000000,
  86. B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001000,B00100000,B10000000,
  87. B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
  88. B00001111,B11000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
  89. B00000111,B10000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111000,
  90. B00000011,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111000
  91. };
  92. #elif HOTENDS == 2
  93. #define STATUS_HEATERS_WIDTH 96
  94. const unsigned char status_heaters_bmp[] PROGMEM = {
  95. B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
  96. B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00000000,B00000000,B00000000,B00000010,B00001000,B00100000,
  97. B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00000000,B00000000,B00000000,B00000010,B00001000,B00100000,
  98. B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
  99. B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00000000,B00000000,B00000000,B00001000,B00100000,B10000000,
  100. B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00000000,B00000000,B00000000,B00010000,B01000001,B00000000,
  101. B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00000000,B00000000,B00000000,B00010000,B01000001,B00000000,
  102. B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00000000,B00000000,B00000000,B00001000,B00100000,B10000000,
  103. B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
  104. B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,
  105. B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111000,
  106. B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000000,B00000000,B00000000,B00011111,B11111111,B11111000
  107. };
  108. #elif HOTENDS == 3
  109. #define STATUS_HEATERS_WIDTH 96
  110. const unsigned char status_heaters_bmp[] PROGMEM = {
  111. B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000100,B00010000,B01000000,
  112. B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00111100,B11110000,B00000000,B00000010,B00001000,B00100000,
  113. B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00000010,B00001000,B00100000,
  114. B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00111111,B01110000,B00000000,B00000100,B00010000,B01000000,
  115. B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00011100,B11100000,B00000000,B00001000,B00100000,B10000000,
  116. B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00011111,B01100000,B00000000,B00010000,B01000001,B00000000,
  117. B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00111011,B01110000,B00000000,B00010000,B01000001,B00000000,
  118. B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00111100,B11110000,B00000000,B00001000,B00100000,B10000000,
  119. B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00000100,B00010000,B01000000,
  120. B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00000000,B00000000,B00000000,
  121. B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00011111,B11111111,B11111000,
  122. B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00011111,B11111111,B11111000
  123. };
  124. #else // HOTENDS > 3
  125. #define STATUS_HEATERS_WIDTH 120
  126. const unsigned char status_heaters_bmp[] PROGMEM = {
  127. B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000100,B00010000,B01000000,
  128. B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00000010,B00001000,B00100000,
  129. B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00000010,B00001000,B00100000,
  130. B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00111111,B01110000,B00000000,B00111011,B01110000,B00000000,B00000100,B00010000,B01000000,
  131. B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00011100,B11100000,B00000000,B00011011,B01100000,B00000000,B00001000,B00100000,B10000000,
  132. B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00011111,B01100000,B00000000,B00011000,B00100000,B00000000,B00010000,B01000001,B00000000,
  133. B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00111011,B01110000,B00000000,B00111111,B01110000,B00000000,B00010000,B01000001,B00000000,
  134. B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00111100,B11110000,B00000000,B00111111,B01110000,B00000000,B00001000,B00100000,B10000000,
  135. B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00000100,B00010000,B01000000,
  136. B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00000000,B00000000,B00000000,
  137. B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00011111,B11111111,B11111000,
  138. B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00011111,B11111111,B11111000
  139. };
  140. #endif // HOTENDS
  141. #define STATUS_BED_TEXT_X (STATUS_HEATERS_WIDTH - 10)
  142. #else // !HAS_HEATED_BED || HOTENDS > 3
  143. #if HOTENDS == 0
  144. #define STATUS_HEATERS_WIDTH 0
  145. #elif HOTENDS == 1
  146. #define STATUS_HEATERS_WIDTH 12
  147. const unsigned char status_heaters_bmp[] PROGMEM = {
  148. B00011111,B11100000,
  149. B00111111,B11110000,
  150. B00111111,B11110000,
  151. B00111111,B11110000,
  152. B00011111,B11100000,
  153. B00011111,B11100000,
  154. B00111111,B11110000,
  155. B00111111,B11110000,
  156. B00111111,B11110000,
  157. B00001111,B11000000,
  158. B00000111,B10000000,
  159. B00000011,B00000000
  160. };
  161. #elif HOTENDS == 2
  162. #define STATUS_HEATERS_WIDTH 36
  163. const unsigned char status_heaters_bmp[] PROGMEM = {
  164. B00011111,B11100000,B00000000,B00011111,B11100000,
  165. B00111110,B11110000,B00000000,B00111100,B11110000,
  166. B00111100,B11110000,B00000000,B00111011,B01110000,
  167. B00111010,B11110000,B00000000,B00111111,B01110000,
  168. B00011110,B11100000,B00000000,B00011110,B11100000,
  169. B00011110,B11100000,B00000000,B00011101,B11100000,
  170. B00111110,B11110000,B00000000,B00111011,B11110000,
  171. B00111110,B11110000,B00000000,B00111000,B01110000,
  172. B00111111,B11110000,B00000000,B00111111,B11110000,
  173. B00001111,B11000000,B00000000,B00001111,B11000000,
  174. B00000111,B10000000,B00000000,B00000111,B10000000,
  175. B00000011,B00000000,B00000000,B00000011,B00000000
  176. };
  177. #elif HOTENDS == 3
  178. #define STATUS_HEATERS_WIDTH 60
  179. const unsigned char status_heaters_bmp[] PROGMEM = {
  180. B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,
  181. B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00111100,B11110000,
  182. B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,
  183. B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00111111,B01110000,
  184. B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00011100,B11100000,
  185. B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00011111,B01100000,
  186. B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00111011,B01110000,
  187. B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00111100,B11110000,
  188. B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,
  189. B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,
  190. B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,
  191. B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000
  192. };
  193. #elif HOTENDS == 4
  194. #define STATUS_HEATERS_WIDTH 84
  195. const unsigned char status_heaters_bmp[] PROGMEM = {
  196. B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,
  197. B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00111100,B11110000,B00000000,B00111011,B01110000,
  198. B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,
  199. B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00111111,B01110000,B00000000,B00111011,B01110000,
  200. B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00011100,B11100000,B00000000,B00011011,B01100000,
  201. B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00011111,B01100000,B00000000,B00011000,B00100000,
  202. B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00111011,B01110000,B00000000,B00111111,B01110000,
  203. B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00111100,B11110000,B00000000,B00111111,B01110000,
  204. B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,
  205. B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,
  206. B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,
  207. B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000
  208. };
  209. #else // HOTENDS > 4
  210. #define STATUS_HEATERS_WIDTH 108
  211. const unsigned char status_heaters_bmp[] PROGMEM = {
  212. B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,
  213. B00111110,B11110000,B00000000,B00111100,B11110000,B00000000,B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111000,B01110000,
  214. B00111100,B11110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00111011,B01110000,B00000000,B00111011,B11110000,
  215. B00111010,B11110000,B00000000,B00111111,B01110000,B00000000,B00111111,B01110000,B00000000,B00111011,B01110000,B00000000,B00111000,B11110000,
  216. B00011110,B11100000,B00000000,B00011110,B11100000,B00000000,B00011100,B11100000,B00000000,B00011011,B01100000,B00000000,B00011111,B01100000,
  217. B00011110,B11100000,B00000000,B00011101,B11100000,B00000000,B00011111,B01100000,B00000000,B00011000,B00100000,B00000000,B00011111,B01100000,
  218. B00111110,B11110000,B00000000,B00111011,B11110000,B00000000,B00111011,B01110000,B00000000,B00111111,B01110000,B00000000,B00111011,B01110000,
  219. B00111110,B11110000,B00000000,B00111000,B01110000,B00000000,B00111100,B11110000,B00000000,B00111111,B01110000,B00000000,B00111100,B11110000,
  220. B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,B00000000,B00111111,B11110000,
  221. B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,B00000000,B00001111,B11000000,
  222. B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,B00000000,B00000111,B10000000,
  223. B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000,B00000000,B00000011,B00000000
  224. };
  225. #endif // HOTENDS
  226. #endif // !HAS_HEATED_BED || HOTENDS > 3
  227. #else // !STATUS_COMBINE_HEATERS
  228. //
  229. // Status Screen Hotends bitmaps
  230. //
  231. #if HOTENDS
  232. #define STATUS_HOTEND1_WIDTH 16
  233. #define MAX_HOTEND_BITMAPS 5
  234. #if HOTENDS > MAX_HOTEND_BITMAPS
  235. #define STATUS_HOTEND_BITMAPS MAX_HOTEND_BITMAPS
  236. #else
  237. #define STATUS_HOTEND_BITMAPS HOTENDS
  238. #endif
  239. #if HOTENDS == 1 || ENABLED(STATUS_HOTEND_NUMBERLESS)
  240. const unsigned char status_hotend_a_bmp[] PROGMEM = {
  241. B00011111,B11100000,
  242. B00111111,B11110000,
  243. B00111111,B11110000,
  244. B00111111,B11110000,
  245. B00011111,B11100000,
  246. B00011111,B11100000,
  247. B00111111,B11110000,
  248. B00111111,B11110000,
  249. B00111111,B11110000,
  250. B00001111,B11000000,
  251. B00000111,B10000000,
  252. B00000011,B00000000
  253. };
  254. #ifdef STATUS_HOTEND_ANIM
  255. const unsigned char status_hotend_b_bmp[] PROGMEM = {
  256. B00011111,B11100000,
  257. B00100000,B00010000,
  258. B00100000,B00010000,
  259. B00100000,B00010000,
  260. B00010000,B00100000,
  261. B00010000,B00100000,
  262. B00100000,B00010000,
  263. B00100000,B00010000,
  264. B00110000,B00110000,
  265. B00001000,B01000000,
  266. B00000100,B10000000,
  267. B00000011,B00000000
  268. };
  269. #endif
  270. #elif HOTENDS >= 2
  271. #ifdef STATUS_HOTEND_ANIM
  272. const unsigned char status_hotend1_a_bmp[] PROGMEM = {
  273. B00011111,B11100000,
  274. B00111111,B11110000,
  275. B00111110,B11110000,
  276. B00111100,B11110000,
  277. B00011010,B11100000,
  278. B00011110,B11100000,
  279. B00111110,B11110000,
  280. B00111110,B11110000,
  281. B00111110,B11110000,
  282. B00001111,B11000000,
  283. B00000111,B10000000,
  284. B00000011,B00000000
  285. };
  286. const unsigned char status_hotend1_b_bmp[] PROGMEM = {
  287. B00011111,B11100000,
  288. B00100000,B00010000,
  289. B00100001,B00010000,
  290. B00100011,B00010000,
  291. B00010101,B00100000,
  292. B00010001,B00100000,
  293. B00100001,B00010000,
  294. B00100001,B00010000,
  295. B00110001,B00110000,
  296. B00001000,B01000000,
  297. B00000100,B10000000,
  298. B00000011,B00000000
  299. };
  300. const unsigned char status_hotend2_a_bmp[] PROGMEM = {
  301. B00011111,B11100000,
  302. B00111111,B11110000,
  303. B00111100,B11110000,
  304. B00111011,B01110000,
  305. B00011111,B01100000,
  306. B00011110,B11100000,
  307. B00111101,B11110000,
  308. B00111011,B11110000,
  309. B00111000,B01110000,
  310. B00001111,B11000000,
  311. B00000111,B10000000,
  312. B00000011,B00000000
  313. };
  314. const unsigned char status_hotend2_b_bmp[] PROGMEM = {
  315. B00011111,B11100000,
  316. B00100000,B00010000,
  317. B00100011,B00010000,
  318. B00100100,B10010000,
  319. B00010000,B10100000,
  320. B00010001,B00100000,
  321. B00100010,B00010000,
  322. B00100100,B00010000,
  323. B00110111,B10110000,
  324. B00001000,B01000000,
  325. B00000100,B10000000,
  326. B00000011,B00000000
  327. };
  328. #else
  329. const unsigned char status_hotend1_a_bmp[] PROGMEM = {
  330. B00011111,B11100000,
  331. B00111110,B11110000,
  332. B00111100,B11110000,
  333. B00111010,B11110000,
  334. B00011110,B11100000,
  335. B00011110,B11100000,
  336. B00111110,B11110000,
  337. B00111110,B11110000,
  338. B00111111,B11110000,
  339. B00001111,B11000000,
  340. B00000111,B10000000,
  341. B00000011,B00000000
  342. };
  343. const unsigned char status_hotend2_a_bmp[] PROGMEM = {
  344. B00011111,B11100000,
  345. B00111100,B11110000,
  346. B00111011,B01110000,
  347. B00111111,B01110000,
  348. B00011110,B11100000,
  349. B00011101,B11100000,
  350. B00111011,B11110000,
  351. B00111000,B01110000,
  352. B00111111,B11110000,
  353. B00001111,B11000000,
  354. B00000111,B10000000,
  355. B00000011,B00000000
  356. };
  357. #endif
  358. #if STATUS_HOTEND_BITMAPS >= 3
  359. #ifdef STATUS_HOTEND_ANIM
  360. const unsigned char status_hotend3_a_bmp[] PROGMEM = {
  361. B00011111,B11100000,
  362. B00111111,B11110000,
  363. B00111100,B11110000,
  364. B00111011,B01110000,
  365. B00011111,B01100000,
  366. B00011100,B11100000,
  367. B00111111,B01110000,
  368. B00111011,B01110000,
  369. B00111100,B11110000,
  370. B00001111,B11000000,
  371. B00000111,B10000000,
  372. B00000011,B00000000
  373. };
  374. const unsigned char status_hotend3_b_bmp[] PROGMEM = {
  375. B00011111,B11100000,
  376. B00100000,B00010000,
  377. B00100011,B00010000,
  378. B00100100,B10010000,
  379. B00010000,B10100000,
  380. B00010011,B00100000,
  381. B00100000,B10010000,
  382. B00100100,B10010000,
  383. B00110011,B00110000,
  384. B00001000,B01000000,
  385. B00000100,B10000000,
  386. B00000011,B00000000
  387. };
  388. #else
  389. const unsigned char status_hotend3_a_bmp[] PROGMEM = {
  390. B00011111,B11100000,
  391. B00111100,B11110000,
  392. B00111011,B01110000,
  393. B00111111,B01110000,
  394. B00011100,B11100000,
  395. B00011111,B01100000,
  396. B00111011,B01110000,
  397. B00111100,B11110000,
  398. B00111111,B11110000,
  399. B00001111,B11000000,
  400. B00000111,B10000000,
  401. B00000011,B00000000
  402. };
  403. #endif
  404. #endif
  405. #if STATUS_HOTEND_BITMAPS >= 4
  406. #ifdef STATUS_HOTEND_ANIM
  407. const unsigned char status_hotend4_a_bmp[] PROGMEM = {
  408. B00011111,B11100000,
  409. B00111111,B11110000,
  410. B00111011,B01110000,
  411. B00111011,B01110000,
  412. B00011011,B01100000,
  413. B00011011,B01100000,
  414. B00111000,B00110000,
  415. B00111111,B01110000,
  416. B00111111,B01110000,
  417. B00001111,B11000000,
  418. B00000111,B10000000,
  419. B00000011,B00000000
  420. };
  421. const unsigned char status_hotend4_b_bmp[] PROGMEM = {
  422. B00011111,B11100000,
  423. B00100000,B00010000,
  424. B00100100,B10010000,
  425. B00100100,B10010000,
  426. B00010100,B10100000,
  427. B00010100,B10100000,
  428. B00100111,B11010000,
  429. B00100000,B10010000,
  430. B00110000,B10110000,
  431. B00001000,B01000000,
  432. B00000100,B10000000,
  433. B00000011,B00000000
  434. };
  435. #else
  436. const unsigned char status_hotend4_a_bmp[] PROGMEM = {
  437. B00011111,B11100000,
  438. B00111011,B01110000,
  439. B00111011,B01110000,
  440. B00111011,B01110000,
  441. B00011011,B01100000,
  442. B00011000,B00100000,
  443. B00111111,B01110000,
  444. B00111111,B01110000,
  445. B00111111,B11110000,
  446. B00001111,B11000000,
  447. B00000111,B10000000,
  448. B00000011,B00000000
  449. };
  450. #endif
  451. #endif
  452. #if STATUS_HOTEND_BITMAPS >= 5
  453. #ifdef STATUS_HOTEND_ANIM
  454. const unsigned char status_hotend5_a_bmp[] PROGMEM = {
  455. B00011111,B11100000,
  456. B00111111,B11110000,
  457. B00111000,B01110000,
  458. B00111011,B11110000,
  459. B00011000,B11100000,
  460. B00011111,B01100000,
  461. B00111111,B01110000,
  462. B00111011,B01110000,
  463. B00111100,B11110000,
  464. B00001111,B11000000,
  465. B00000111,B10000000,
  466. B00000011,B00000000
  467. };
  468. const unsigned char status_hotend5_b_bmp[] PROGMEM = {
  469. B00011111,B11100000,
  470. B00100000,B00010000,
  471. B00100111,B10010000,
  472. B00100100,B00010000,
  473. B00010111,B00100000,
  474. B00010000,B10100000,
  475. B00100000,B10010000,
  476. B00100100,B10010000,
  477. B00110011,B00110000,
  478. B00001000,B01000000,
  479. B00000100,B10000000,
  480. B00000011,B00000000
  481. };
  482. #else
  483. const unsigned char status_hotend5_a_bmp[] PROGMEM = {
  484. B00011111,B11100000,
  485. B00111000,B01110000,
  486. B00111011,B11110000,
  487. B00111000,B11110000,
  488. B00011111,B01100000,
  489. B00011111,B01100000,
  490. B00111011,B01110000,
  491. B00111100,B11110000,
  492. B00111111,B11110000,
  493. B00001111,B11000000,
  494. B00000111,B10000000,
  495. B00000011,B00000000
  496. };
  497. #endif
  498. #endif
  499. #endif
  500. #else
  501. #define STATUS_HEATERS_HEIGHT 20
  502. #endif
  503. #endif
  504. #endif // !STATUS_HEATERS_WIDTH && !STATUS_HOTEND1_WIDTH
  505. // LASER / SPINDLE
  506. #if !STATUS_CUTTER_WIDTH && HAS_CUTTER
  507. #define STATUS_CUTTER_WIDTH 24
  508. #define STATUS_CUTTER_X 80
  509. #if ENABLED(LASER_FEATURE)
  510. #ifdef STATUS_CUTTER_ANIM
  511. const unsigned char status_cutter_on_bmp[] PROGMEM = {
  512. B00000000,B00100100,B00000000,
  513. B00000000,B01100110,B00000000,
  514. B00000000,B11000011,B00000000,
  515. B00000001,B10011001,B10000000,
  516. B00000011,B00100100,B11000000,
  517. B00000000,B01000010,B00000000,
  518. B00000000,B01000010,B00000000,
  519. B00000011,B00100100,B11000000,
  520. B00000001,B10011001,B10000000,
  521. B00000000,B11000011,B00000000,
  522. B00000000,B01100110,B00000000,
  523. B00000000,B00100100,B00000000
  524. };
  525. const unsigned char status_cutter_bmp[] PROGMEM = {
  526. B00000000,B00100100,B00000000,
  527. B00000000,B01100110,B00000000,
  528. B00000000,B00000000,B00000000,
  529. B00000001,B00000000,B10000000,
  530. B00000011,B00000000,B11000000,
  531. B00000000,B00011000,B00000000,
  532. B00000000,B00011000,B00000000,
  533. B00000011,B00000000,B11000000,
  534. B00000001,B00000000,B10000000,
  535. B00000000,B00000000,B00000000,
  536. B00000000,B01100110,B00000000,
  537. B00000000,B00100100,B00000000
  538. };
  539. #else
  540. const unsigned char status_cutter_bmp[] PROGMEM = {
  541. B00000000,B00100100,B00000000,
  542. B00000000,B01100110,B00000000,
  543. B00000000,B11000011,B00000000,
  544. B00000001,B10000001,B10000000,
  545. B00000011,B00000000,B11000000,
  546. B00000000,B00000000,B00000000,
  547. B00000000,B00000000,B00000000,
  548. B00000011,B00000000,B11000000,
  549. B00000001,B10000001,B10000000,
  550. B00000000,B11000011,B00000000,
  551. B00000000,B01100110,B00000000,
  552. B00000000,B00100100,B00000000
  553. };
  554. #endif
  555. #else
  556. #ifdef STATUS_CUTTER_ANIM
  557. const unsigned char status_cutter_on_bmp[] PROGMEM = {
  558. B00000001,B11111110,B10000000,
  559. B00000000,B11000000,B00000000,
  560. B00000001,B10000000,B10000000,
  561. B00000001,B00000000,B10000000,
  562. B00000001,B11111100,B10000000,
  563. B00000000,B11100000,B00000000,
  564. B00000001,B11000000,B10000000,
  565. B00000000,B10000001,B00000000,
  566. B00000000,B01111010,B00000000,
  567. B00000000,B00110100,B00000000,
  568. B00000000,B00011000,B00000000,
  569. B00000000,B00000000,B00000000
  570. };
  571. const unsigned char status_cutter_bmp[] PROGMEM = {
  572. B00000001,B11111110,B10000000,
  573. B00000000,B11000000,B00000000,
  574. B00000001,B10000000,B10000000,
  575. B00000001,B00000000,B10000000,
  576. B00000001,B11111100,B10000000,
  577. B00000000,B11100000,B00000000,
  578. B00000001,B11000000,B10000000,
  579. B00000000,B10000001,B00000000,
  580. B00000000,B01111010,B00000000,
  581. B00000000,B00110100,B00000000,
  582. B00000000,B00011000,B00000000,
  583. B00000000,B00000000,B00000000
  584. };
  585. #else
  586. const unsigned char status_cutter_bmp[] PROGMEM = {
  587. B00000001,B11000010,B10000000,
  588. B00000001,B00011100,B10000000,
  589. B00000000,B11100001,B00000000,
  590. B00000001,B00001110,B10000000,
  591. B00000001,B01110000,B10000000,
  592. B00000000,B10000111,B10000000,
  593. B00000001,B00111111,B10000000,
  594. B00000000,B11111111,B00000000,
  595. B00000000,B01111110,B00000000,
  596. B00000000,B00111100,B00000000,
  597. B00000000,B00011000,B00000000,
  598. B00000000,B00000000,B00000000
  599. };
  600. #endif
  601. #endif
  602. #endif // LASER / SPINDLE
  603. //
  604. // Default Status Screen Bed bitmaps
  605. //
  606. #if !STATUS_BED_WIDTH && HAS_HEATED_BED && DISABLED(STATUS_COMBINE_HEATERS)
  607. #if ENABLED(STATUS_ALT_BED_BITMAP)
  608. #define STATUS_BED_ANIM
  609. #define STATUS_BED_WIDTH 24
  610. #ifndef STATUS_BED_X
  611. #define STATUS_BED_X (LCD_PIXEL_WIDTH - (STATUS_BED_BYTEWIDTH + STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH) * 8)
  612. #endif
  613. #define STATUS_BED_TEXT_X (STATUS_BED_X + 11)
  614. const unsigned char status_bed_bmp[] PROGMEM = {
  615. B11111111,B11111111,B11000000,
  616. B01000000,B00000000,B00100000,
  617. B00100000,B00000000,B00010000,
  618. B00010000,B00000000,B00001000,
  619. B00001000,B00000000,B00000100,
  620. B00000100,B00000000,B00000010,
  621. B00000011,B11111111,B11111111
  622. };
  623. const unsigned char status_bed_on_bmp[] PROGMEM = {
  624. B00000010,B00100010,B00000000,
  625. B00000100,B01000100,B00000000,
  626. B00000100,B01000100,B00000000,
  627. B00000010,B00100010,B00000000,
  628. B00000001,B00010001,B00000000,
  629. B11111111,B11111111,B11000000,
  630. B01000000,B10001000,B10100000,
  631. B00100001,B00010001,B00010000,
  632. B00010010,B00100010,B00001000,
  633. B00001000,B00000000,B00000100,
  634. B00000100,B00000000,B00000010,
  635. B00000011,B11111111,B11111111
  636. };
  637. #else
  638. #define STATUS_BED_WIDTH 21
  639. #ifndef STATUS_BED_X
  640. #define STATUS_BED_X (LCD_PIXEL_WIDTH - (STATUS_BED_BYTEWIDTH + STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH) * 8)
  641. #endif
  642. #ifdef STATUS_BED_ANIM
  643. const unsigned char status_bed_bmp[] PROGMEM = {
  644. B00011111,B11111111,B11111000,
  645. B00011111,B11111111,B11111000
  646. };
  647. const unsigned char status_bed_on_bmp[] PROGMEM = {
  648. B00000100,B00010000,B01000000,
  649. B00000010,B00001000,B00100000,
  650. B00000010,B00001000,B00100000,
  651. B00000100,B00010000,B01000000,
  652. B00001000,B00100000,B10000000,
  653. B00010000,B01000001,B00000000,
  654. B00010000,B01000001,B00000000,
  655. B00001000,B00100000,B10000000,
  656. B00000100,B00010000,B01000000,
  657. B00000000,B00000000,B00000000,
  658. B00011111,B11111111,B11111000,
  659. B00011111,B11111111,B11111000
  660. };
  661. #else
  662. const unsigned char status_bed_bmp[] PROGMEM = {
  663. B00000100,B00010000,B01000000,
  664. B00000010,B00001000,B00100000,
  665. B00000010,B00001000,B00100000,
  666. B00000100,B00010000,B01000000,
  667. B00001000,B00100000,B10000000,
  668. B00010000,B01000001,B00000000,
  669. B00010000,B01000001,B00000000,
  670. B00001000,B00100000,B10000000,
  671. B00000100,B00010000,B01000000,
  672. B00000000,B00000000,B00000000,
  673. B00011111,B11111111,B11111000,
  674. B00011111,B11111111,B11111000
  675. };
  676. #endif
  677. #endif
  678. #endif
  679. #ifndef STATUS_BED_WIDTH
  680. #define STATUS_BED_WIDTH 0
  681. #endif
  682. #if !STATUS_CHAMBER_WIDTH && HAS_TEMP_CHAMBER && ((HOTENDS <= 4 && !HAS_HEATED_BED) || (HOTENDS <= 3 && HAS_HEATED_BED))
  683. #define STATUS_CHAMBER_WIDTH 21
  684. #if STATUS_HEATERS_WIDTH
  685. #if ENABLED(STATUS_COMBINE_HEATERS)
  686. #define STATUS_CHAMBER_X (LCD_PIXEL_WIDTH - 2 - (STATUS_CHAMBER_BYTEWIDTH) * 8)
  687. #elif HAS_FAN0 && HAS_HEATED_BED && HOTENDS <= 2
  688. #define STATUS_CHAMBER_X (LCD_PIXEL_WIDTH - 2 - (STATUS_HEATERS_BYTEWIDTH - STATUS_CHAMBER_BYTEWIDTH) * 8)
  689. #elif HAS_FAN0 && !HAS_HEATED_BED
  690. #define STATUS_CHAMBER_X (LCD_PIXEL_WIDTH - (STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH) * 8)
  691. #else
  692. #define STATUS_CHAMBER_X (LCD_PIXEL_WIDTH - (STATUS_CHAMBER_BYTEWIDTH) * 8)
  693. #endif
  694. #endif
  695. #ifdef STATUS_CHAMBER_ANIM
  696. const unsigned char status_chamber_bmp[] PROGMEM = {
  697. B00011111,B11111111,B11111000,
  698. B00010000,B00000000,B00001000,
  699. B00010000,B00000000,B00001000,
  700. B00010000,B00000000,B00001000,
  701. B00010000,B00000000,B00001000,
  702. B00010000,B00000000,B00001000,
  703. B00010000,B00000000,B00001000,
  704. B00010000,B00000000,B00001000,
  705. B00010000,B00000000,B00001000,
  706. B00010000,B00000000,B00001000,
  707. B00011111,B11111111,B11111000,
  708. B00011111,B11111111,B11111000
  709. };
  710. const unsigned char status_chamber_on_bmp[] PROGMEM = {
  711. B00011111,B11111111,B11111000,
  712. B00010000,B00000000,B00001000,
  713. B00010000,B10000100,B00001000,
  714. B00010000,B01000010,B00001000,
  715. B00010000,B01000010,B00001000,
  716. B00010000,B10000100,B00001000,
  717. B00010001,B00001000,B00001000,
  718. B00010001,B00001000,B00001000,
  719. B00010000,B10000100,B00001000,
  720. B00010000,B00000000,B00001000,
  721. B00011111,B11111111,B11111000,
  722. B00011111,B11111111,B11111000
  723. };
  724. #else
  725. const unsigned char status_chamber_bmp[] PROGMEM = {
  726. B00011111,B11111111,B11111000,
  727. B00010000,B00000000,B00001000,
  728. B00010000,B10000100,B00001000,
  729. B00010000,B01000010,B00001000,
  730. B00010000,B01000010,B00001000,
  731. B00010000,B10000100,B00001000,
  732. B00010001,B00001000,B00001000,
  733. B00010001,B00001000,B00001000,
  734. B00010000,B10000100,B00001000,
  735. B00010000,B00000000,B00001000,
  736. B00011111,B11111111,B11111000,
  737. B00011111,B11111111,B11111000
  738. };
  739. #endif
  740. #endif
  741. #ifndef STATUS_CHAMBER_WIDTH
  742. #define STATUS_CHAMBER_WIDTH 0
  743. #endif
  744. #define BED_OR_CHAMBER_OR_FAN (BED_OR_CHAMBER || HAS_FAN0)
  745. // Can also be overridden in Configuration_adv.h
  746. // If you can afford it, try the 3-frame fan animation!
  747. // Don't compile in the fan animation with no fan
  748. #if !HAS_FAN0 || (HOTENDS == 5 || (HOTENDS == 4 && BED_OR_CHAMBER) || (ENABLED(STATUS_COMBINE_HEATERS) && HAS_HEATED_CHAMBER))
  749. #undef STATUS_FAN_FRAMES
  750. #elif !STATUS_FAN_FRAMES
  751. #define STATUS_FAN_FRAMES 2
  752. #elif STATUS_FAN_FRAMES > 4
  753. #error "A maximum of 4 fan animation frames is currently supported."
  754. #endif
  755. #if HOTENDS > 4
  756. #undef STATUS_LOGO_WIDTH
  757. #undef STATUS_HEATERS_XSPACE
  758. #define STATUS_HEATERS_XSPACE 24
  759. #endif
  760. //
  761. // Provide default Fan Bitmaps
  762. //
  763. #if !STATUS_FAN_WIDTH && STATUS_FAN_FRAMES > 0
  764. // Provide a fan animation if none exists
  765. #if STATUS_FAN_FRAMES <= 2
  766. #define STATUS_FAN_Y 2
  767. #define STATUS_FAN_WIDTH 20
  768. #if ENABLED(STATUS_ALT_FAN_BITMAP)
  769. const unsigned char status_fan0_bmp[] PROGMEM = {
  770. B00000001,B11111110,B00000000,
  771. B00000110,B00000001,B10000000,
  772. B00001000,B11111100,B01000000,
  773. B00010000,B11111100,B00100000,
  774. B00010000,B01111000,B00100000,
  775. B00100000,B00110000,B00010000,
  776. B00101100,B00000000,B11010000,
  777. B00101110,B00110001,B11010000,
  778. B00101111,B01111011,B11010000,
  779. B00101111,B01111011,B11010000,
  780. B00101110,B00110001,B11010000,
  781. B00101100,B00000000,B11010000,
  782. B00100000,B00110000,B00010000,
  783. B00010000,B01111000,B00100000,
  784. B00010000,B11111100,B00100000,
  785. B00001000,B11111100,B01000000,
  786. B00000110,B00000001,B10000000,
  787. B00000001,B11111110,B00000000
  788. };
  789. #if STATUS_FAN_FRAMES == 2
  790. const unsigned char status_fan1_bmp[] PROGMEM = {
  791. B00000001,B11111110,B00000000,
  792. B00000110,B00000001,B10000000,
  793. B00001001,B10000110,B01000000,
  794. B00010011,B10000111,B00100000,
  795. B00010111,B10000111,B10100000,
  796. B00101111,B10000111,B11010000,
  797. B00101111,B00000011,B11010000,
  798. B00100000,B00110000,B00010000,
  799. B00100000,B01111000,B00010000,
  800. B00100000,B01111000,B00010000,
  801. B00100000,B00110000,B00010000,
  802. B00101111,B00000011,B11010000,
  803. B00101111,B10000111,B11010000,
  804. B00010111,B10000111,B10100000,
  805. B00010011,B10000111,B00100000,
  806. B00001001,B10000110,B01000000,
  807. B00000110,B00000001,B10000000,
  808. B00000001,B11111110,B00000000
  809. };
  810. #endif
  811. #else // !STATUS_ALT_FAN_BITMAP
  812. const unsigned char status_fan0_bmp[] PROGMEM = {
  813. B00111111,B11111111,B11110000,
  814. B00111000,B00000000,B01110000,
  815. B00110000,B11111100,B00110000,
  816. B00100000,B11111100,B00010000,
  817. B00100000,B01111000,B00010000,
  818. B00100000,B00110000,B00010000,
  819. B00101100,B00000000,B11010000,
  820. B00101110,B00110001,B11010000,
  821. B00101111,B01111011,B11010000,
  822. B00101111,B01111011,B11010000,
  823. B00101110,B00110001,B11010000,
  824. B00101100,B00000000,B11010000,
  825. B00100000,B00110000,B00010000,
  826. B00100000,B01111000,B00010000,
  827. B00100000,B11111100,B00010000,
  828. B00110000,B11111100,B00110000,
  829. B00111000,B00000000,B01110000,
  830. B00111111,B11111111,B11110000
  831. };
  832. #if STATUS_FAN_FRAMES == 2
  833. const unsigned char status_fan1_bmp[] PROGMEM = {
  834. B00111111,B11111111,B11110000,
  835. B00111000,B00000000,B01110000,
  836. B00110001,B10000110,B00110000,
  837. B00100011,B10000111,B00010000,
  838. B00100111,B10000111,B10010000,
  839. B00101111,B10000111,B11010000,
  840. B00101111,B00000011,B11010000,
  841. B00100000,B00110000,B00010000,
  842. B00100000,B01111000,B00010000,
  843. B00100000,B01111000,B00010000,
  844. B00100000,B00110000,B00010000,
  845. B00101111,B00000011,B11010000,
  846. B00101111,B10000111,B11010000,
  847. B00100111,B10000111,B10010000,
  848. B00100011,B10000111,B00010000,
  849. B00110001,B10000110,B00110000,
  850. B00111000,B00000000,B01110000,
  851. B00111111,B11111111,B11110000
  852. };
  853. #endif
  854. #endif // !STATUS_ALT_FAN_BITMAP
  855. #elif STATUS_FAN_FRAMES == 3
  856. #define STATUS_FAN_WIDTH 20
  857. #if ENABLED(STATUS_ALT_FAN_BITMAP)
  858. const unsigned char status_fan0_bmp[] PROGMEM = {
  859. B00000001,B11111111,B00000000,
  860. B00000110,B00000000,B11000000,
  861. B00001001,B00000001,B00100000,
  862. B00010111,B10000011,B11010000,
  863. B00010111,B10000011,B11010000,
  864. B00101111,B11000111,B11101000,
  865. B00100111,B11000111,B11001000,
  866. B00100001,B11111111,B00001000,
  867. B00100000,B01111100,B00001000,
  868. B00100000,B01111100,B00001000,
  869. B00100000,B01111100,B00001000,
  870. B00100001,B11111111,B00001000,
  871. B00100111,B11000111,B11001000,
  872. B00101111,B11000111,B11101000,
  873. B00010111,B10000011,B11010000,
  874. B00010111,B10000011,B11010000,
  875. B00001001,B00000001,B00100000,
  876. B00000110,B00000000,B11000000,
  877. B00000001,B11111111,B00000000
  878. };
  879. const unsigned char status_fan1_bmp[] PROGMEM = {
  880. B00000001,B11111111,B00000000,
  881. B00000110,B00110000,B11000000,
  882. B00001001,B11110000,B00100000,
  883. B00010001,B11110000,B00010000,
  884. B00010000,B11110000,B00010000,
  885. B00100000,B11110000,B01101000,
  886. B00100000,B00110001,B11101000,
  887. B00100000,B00111001,B11101000,
  888. B00100000,B01111111,B11111000,
  889. B00111111,B11111111,B11111000,
  890. B00111111,B11111100,B00001000,
  891. B00101111,B00111000,B00001000,
  892. B00101110,B00011000,B00001000,
  893. B00101100,B00011110,B00001000,
  894. B00010000,B00011110,B00010000,
  895. B00010000,B00011111,B00010000,
  896. B00001000,B00011111,B00100000,
  897. B00000110,B00011000,B11000000,
  898. B00000001,B11111111,B00000000
  899. };
  900. const unsigned char status_fan2_bmp[] PROGMEM = {
  901. B00000001,B11111111,B00000000,
  902. B00000110,B00011000,B11000000,
  903. B00001000,B00011111,B00100000,
  904. B00010000,B00011111,B10010000,
  905. B00010100,B00011111,B00010000,
  906. B00101110,B00011110,B00001000,
  907. B00101111,B00011100,B00001000,
  908. B00101111,B10111000,B00001000,
  909. B00111111,B11111100,B00001000,
  910. B00111111,B11111111,B11111000,
  911. B00100000,B01111111,B11111000,
  912. B00100000,B00111011,B11101000,
  913. B00100000,B01110001,B11101000,
  914. B00100000,B11110000,B11101000,
  915. B00010001,B11110000,B01010000,
  916. B00010011,B11110000,B00010000,
  917. B00001001,B11110000,B00100000,
  918. B00000110,B00110000,B11000000,
  919. B00000001,B11111111,B00000000
  920. };
  921. #else // !STATUS_ALT_FAN_BITMAP
  922. const unsigned char status_fan0_bmp[] PROGMEM = {
  923. B00111111,B11111111,B11111000,
  924. B00111110,B00000000,B11111000,
  925. B00111001,B00000001,B00111000,
  926. B00110111,B10000011,B11011000,
  927. B00110111,B10000011,B11011000,
  928. B00101111,B11000111,B11101000,
  929. B00100111,B11000111,B11001000,
  930. B00100001,B11111111,B00001000,
  931. B00100000,B01111100,B00001000,
  932. B00100000,B01111100,B00001000,
  933. B00100000,B01111100,B00001000,
  934. B00100001,B11111111,B00001000,
  935. B00100111,B11000111,B11001000,
  936. B00101111,B11000111,B11101000,
  937. B00110111,B10000011,B11011000,
  938. B00110111,B10000011,B11011000,
  939. B00111001,B00000001,B00111000,
  940. B00111110,B00000000,B11111000,
  941. B00111111,B11111111,B11111000
  942. };
  943. const unsigned char status_fan1_bmp[] PROGMEM = {
  944. B00111111,B11111111,B11111000,
  945. B00111110,B00110000,B11111000,
  946. B00111001,B11110000,B00111000,
  947. B00110001,B11110000,B00011000,
  948. B00110000,B11110000,B00011000,
  949. B00100000,B11110000,B01101000,
  950. B00100000,B00110001,B11101000,
  951. B00100000,B00111001,B11101000,
  952. B00100000,B01111111,B11111000,
  953. B00111111,B11111111,B11111000,
  954. B00111111,B11111100,B00001000,
  955. B00101111,B00111000,B00001000,
  956. B00101110,B00011000,B00001000,
  957. B00101100,B00011110,B00001000,
  958. B00110000,B00011110,B00011000,
  959. B00110000,B00011111,B00011000,
  960. B00111000,B00011111,B00111000,
  961. B00111110,B00011000,B11111000,
  962. B00111111,B11111111,B11111000
  963. };
  964. const unsigned char status_fan2_bmp[] PROGMEM = {
  965. B00111111,B11111111,B11111000,
  966. B00111110,B00011000,B11111000,
  967. B00111000,B00011111,B00111000,
  968. B00110000,B00011111,B10011000,
  969. B00110100,B00011111,B00011000,
  970. B00101110,B00011110,B00001000,
  971. B00101111,B00011100,B00001000,
  972. B00101111,B10111000,B00001000,
  973. B00111111,B11111100,B00001000,
  974. B00111111,B11111111,B11111000,
  975. B00100000,B01111111,B11111000,
  976. B00100000,B00111011,B11101000,
  977. B00100000,B01110001,B11101000,
  978. B00100000,B11110000,B11101000,
  979. B00110001,B11110000,B01011000,
  980. B00110011,B11110000,B00011000,
  981. B00111001,B11110000,B00111000,
  982. B00111110,B00110000,B11111000,
  983. B00111111,B11111111,B11111000
  984. };
  985. #endif // !STATUS_ALT_FAN_BITMAP
  986. #elif STATUS_FAN_FRAMES == 4
  987. #define STATUS_FAN_WIDTH 20
  988. #if ENABLED(STATUS_ALT_FAN_BITMAP)
  989. const unsigned char status_fan0_bmp[] PROGMEM = {
  990. B00000001,B11111111,B00000000,
  991. B00000110,B00000000,B11000000,
  992. B00001000,B00111111,B00100000,
  993. B00010000,B01111110,B00010000,
  994. B00010000,B01111100,B00010000,
  995. B00101000,B01111100,B00001000,
  996. B00101100,B00111000,B00001000,
  997. B00101111,B00111001,B11001000,
  998. B00101111,B11111111,B11101000,
  999. B00101111,B11000111,B11101000,
  1000. B00101111,B11111111,B11101000,
  1001. B00100111,B00111001,B11101000,
  1002. B00100000,B00111000,B01101000,
  1003. B00100000,B01111100,B00101000,
  1004. B00010000,B01111100,B00010000,
  1005. B00010000,B11111100,B00010000,
  1006. B00001001,B11111000,B00100000,
  1007. B00000110,B00000000,B11000000,
  1008. B00000001,B11111111,B00000000
  1009. };
  1010. const unsigned char status_fan1_bmp[] PROGMEM = {
  1011. B00000001,B11111111,B00000000,
  1012. B00000110,B00000000,B11000000,
  1013. B00001000,B00001111,B00100000,
  1014. B00010100,B00011111,B11010000,
  1015. B00010110,B00011111,B10010000,
  1016. B00101111,B00011111,B00001000,
  1017. B00101111,B10011110,B00001000,
  1018. B00101111,B11111100,B00001000,
  1019. B00101111,B11011100,B00001000,
  1020. B00100111,B11101111,B11001000,
  1021. B00100000,B01110111,B11101000,
  1022. B00100000,B01111111,B11101000,
  1023. B00100000,B11110011,B11101000,
  1024. B00100001,B11110001,B11101000,
  1025. B00010011,B11110000,B11010000,
  1026. B00010111,B11110000,B01010000,
  1027. B00001001,B11100000,B00100000,
  1028. B00000110,B00000000,B11000000,
  1029. B00000001,B11111111,B00000000
  1030. };
  1031. const unsigned char status_fan2_bmp[] PROGMEM = {
  1032. B00000001,B11111111,B00000000,
  1033. B00000110,B10000000,B11000000,
  1034. B00001001,B10000000,B00100000,
  1035. B00010111,B10000001,B11010000,
  1036. B00010111,B11000011,B11010000,
  1037. B00100111,B11000111,B11101000,
  1038. B00100011,B11000111,B11111000,
  1039. B00100001,B11111111,B10001000,
  1040. B00100000,B01101100,B00001000,
  1041. B00100000,B01101100,B00001000,
  1042. B00100000,B01101100,B00001000,
  1043. B00100011,B11111111,B00001000,
  1044. B00111111,B11000111,B10001000,
  1045. B00101111,B11000111,B11001000,
  1046. B00010111,B10000111,B11010000,
  1047. B00010111,B00000011,B11010000,
  1048. B00001000,B00000011,B00100000,
  1049. B00000110,B00000010,B11000000,
  1050. B00000001,B11111111,B00000000
  1051. };
  1052. const unsigned char status_fan3_bmp[] PROGMEM = {
  1053. B00000001,B11111111,B00000000,
  1054. B00000110,B00000000,B11000000,
  1055. B00001001,B11110000,B00100000,
  1056. B00010001,B11100000,B00010000,
  1057. B00010001,B11100000,B00010000,
  1058. B00100001,B11100001,B11101000,
  1059. B00100000,B11110011,B11101000,
  1060. B00100000,B01111111,B11101000,
  1061. B00100000,B01110111,B11101000,
  1062. B00101000,B11101110,B00101000,
  1063. B00101111,B11011100,B00001000,
  1064. B00101111,B11111100,B00001000,
  1065. B00101111,B10011110,B00001000,
  1066. B00101111,B00001111,B00001000,
  1067. B00010000,B00001111,B00010000,
  1068. B00010000,B00001111,B00010000,
  1069. B00001000,B00011111,B00100000,
  1070. B00000110,B00000000,B11000000,
  1071. B00000001,B11111111,B00000000
  1072. };
  1073. #else // !STATUS_ALT_FAN_BITMAP
  1074. const unsigned char status_fan0_bmp[] PROGMEM = {
  1075. B00111111,B11111111,B11111000,
  1076. B00111110,B00000000,B11111000,
  1077. B00111000,B00111111,B00111000,
  1078. B00110000,B01111110,B00011000,
  1079. B00110000,B01111100,B00011000,
  1080. B00101000,B01111100,B00001000,
  1081. B00101100,B00111000,B00001000,
  1082. B00101111,B00111001,B11001000,
  1083. B00101111,B11111111,B11101000,
  1084. B00101111,B11000111,B11101000,
  1085. B00101111,B11111111,B11101000,
  1086. B00100111,B00111001,B11101000,
  1087. B00100000,B00111000,B01101000,
  1088. B00100000,B01111100,B00101000,
  1089. B00110000,B01111100,B00011000,
  1090. B00110000,B11111100,B00011000,
  1091. B00111001,B11111000,B00111000,
  1092. B00111110,B00000000,B11111000,
  1093. B00111111,B11111111,B11111000
  1094. };
  1095. const unsigned char status_fan1_bmp[] PROGMEM = {
  1096. B00111111,B11111111,B11111000,
  1097. B00111110,B00000000,B11111000,
  1098. B00111000,B00001111,B00111000,
  1099. B00110100,B00011111,B11011000,
  1100. B00110110,B00011111,B10011000,
  1101. B00101111,B00011111,B00001000,
  1102. B00101111,B10011110,B00001000,
  1103. B00101111,B11111100,B00001000,
  1104. B00101111,B11011100,B00001000,
  1105. B00100111,B11101111,B11001000,
  1106. B00100000,B01110111,B11101000,
  1107. B00100000,B01111111,B11101000,
  1108. B00100000,B11110011,B11101000,
  1109. B00100001,B11110001,B11101000,
  1110. B00110011,B11110000,B11011000,
  1111. B00110111,B11110000,B01011000,
  1112. B00111001,B11100000,B00111000,
  1113. B00111110,B00000000,B11111000,
  1114. B00111111,B11111111,B11111000
  1115. };
  1116. const unsigned char status_fan2_bmp[] PROGMEM = {
  1117. B00111111,B11111111,B11111000,
  1118. B00111110,B10000000,B11111000,
  1119. B00111001,B10000000,B00111000,
  1120. B00110111,B10000001,B11011000,
  1121. B00110111,B11000011,B11011000,
  1122. B00100111,B11000111,B11101000,
  1123. B00100011,B11000111,B11111000,
  1124. B00100001,B11111111,B10001000,
  1125. B00100000,B01101100,B00001000,
  1126. B00100000,B01101100,B00001000,
  1127. B00100000,B01101100,B00001000,
  1128. B00100011,B11111111,B00001000,
  1129. B00111111,B11000111,B10001000,
  1130. B00101111,B11000111,B11001000,
  1131. B00110111,B10000111,B11011000,
  1132. B00110111,B00000011,B11011000,
  1133. B00111000,B00000011,B00111000,
  1134. B00111110,B00000010,B11111000,
  1135. B00111111,B11111111,B11111000
  1136. };
  1137. const unsigned char status_fan3_bmp[] PROGMEM = {
  1138. B00111111,B11111111,B11111000,
  1139. B00111110,B00000000,B11111000,
  1140. B00111001,B11110000,B00111000,
  1141. B00110001,B11100000,B00011000,
  1142. B00110001,B11100000,B00011000,
  1143. B00100001,B11100001,B11101000,
  1144. B00100000,B11110011,B11101000,
  1145. B00100000,B01111111,B11101000,
  1146. B00100000,B01110111,B11101000,
  1147. B00101000,B11101110,B00101000,
  1148. B00101111,B11011100,B00001000,
  1149. B00101111,B11111100,B00001000,
  1150. B00101111,B10011110,B00001000,
  1151. B00101111,B00001111,B00001000,
  1152. B00110000,B00001111,B00011000,
  1153. B00110000,B00001111,B00011000,
  1154. B00111000,B00011111,B00111000,
  1155. B00111110,B00000000,B11111000,
  1156. B00111111,B11111111,B11111000
  1157. };
  1158. #endif // !STATUS_ALT_FAN_BITMAP
  1159. #endif
  1160. #else
  1161. #undef STATUS_FAN_FRAMES
  1162. #define STATUS_FAN_WIDTH 0
  1163. #endif
  1164. #define _EXTRA_WIDTH (STATUS_FAN_WIDTH + STATUS_CHAMBER_WIDTH + STATUS_BED_WIDTH)
  1165. //
  1166. // Heater Bitmap X Space Requirements
  1167. //
  1168. #if !defined(STATUS_HEATERS_XSPACE) && (STATUS_HOTEND1_WIDTH || STATUS_HEATERS_WIDTH)
  1169. #if (HOTENDS == 3 || HOTENDS == 4) && ENABLED(STATUS_COMBINE_HEATERS)
  1170. // If more heaters or they're combined, 3 bytes
  1171. #define STATUS_HEATERS_XSPACE 24
  1172. #elif STATUS_LOGO_WIDTH > (LCD_PIXEL_WIDTH - (_EXTRA_WIDTH) - 26 * (HOTENDS)) // 128 - (20 + 24 + 26) == 58
  1173. // If the logo won't fit at 26 width
  1174. #define STATUS_HEATERS_XSPACE 24
  1175. #else
  1176. #define STATUS_HEATERS_XSPACE 26
  1177. #endif
  1178. #endif
  1179. #if ENABLED(CUSTOM_STATUS_SCREEN_IMAGE)
  1180. //
  1181. // Disable the logo bitmap if insufficient space
  1182. //
  1183. #if STATUS_HEATERS_XSPACE
  1184. #define _HEATERS_WIDTH (HOTENDS * (STATUS_HEATERS_XSPACE)) // as many hotends as possible
  1185. #elif STATUS_HEATERS_WIDTH
  1186. #define _HEATERS_WIDTH STATUS_HEATERS_WIDTH
  1187. #elif HOTENDS
  1188. #error "Status screen heaters region was not specified."
  1189. #endif
  1190. #if STATUS_LOGO_WIDTH > (LCD_PIXEL_WIDTH - (_EXTRA_WIDTH + _HEATERS_WIDTH))
  1191. #warning "Unable to fit custom Status Screen logo. Disabling."
  1192. #undef STATUS_LOGO_WIDTH
  1193. #endif
  1194. #if (HOTENDS > 1 && STATUS_LOGO_WIDTH && BED_OR_CHAMBER_OR_FAN) || (HOTENDS >= 3 && !BED_OR_CHAMBER_OR_FAN)
  1195. #define _STATUS_HEATERS_X(H,S,N) ((LCD_PIXEL_WIDTH - (H * (S + N)) - (_EXTRA_WIDTH) + (STATUS_LOGO_WIDTH)) / 2)
  1196. #if STATUS_HOTEND1_WIDTH
  1197. #if HOTENDS > 2
  1198. #define STATUS_HEATERS_X _STATUS_HEATERS_X(HOTENDS, STATUS_HOTEND1_WIDTH, 6)
  1199. #else
  1200. #define STATUS_HEATERS_X _STATUS_HEATERS_X(HOTENDS, STATUS_HOTEND1_WIDTH, 4)
  1201. #endif
  1202. #else
  1203. #define STATUS_HEATERS_X _STATUS_HEATERS_X(1, STATUS_HEATERS_WIDTH, 4)
  1204. #endif
  1205. #endif
  1206. #endif
  1207. //
  1208. // Custom Logo Bitmap Properties
  1209. //
  1210. #ifndef STATUS_LOGO_WIDTH
  1211. #define STATUS_LOGO_WIDTH 0
  1212. #endif
  1213. #ifndef STATUS_LOGO_BYTEWIDTH
  1214. #define STATUS_LOGO_BYTEWIDTH BW(STATUS_LOGO_WIDTH)
  1215. #endif
  1216. #if STATUS_LOGO_WIDTH
  1217. #ifndef STATUS_LOGO_X
  1218. #define STATUS_LOGO_X 0
  1219. #endif
  1220. #ifndef STATUS_LOGO_Y
  1221. #define STATUS_LOGO_Y _MIN(0U, (10 - (STATUS_LOGO_HEIGHT) / 2))
  1222. #endif
  1223. #ifndef STATUS_LOGO_HEIGHT
  1224. #define STATUS_LOGO_HEIGHT (sizeof(status_logo_bmp) / (STATUS_LOGO_BYTEWIDTH))
  1225. #endif
  1226. static_assert(
  1227. sizeof(status_logo_bmp) == (STATUS_LOGO_BYTEWIDTH) * (STATUS_LOGO_HEIGHT),
  1228. "Status logo bitmap (status_logo_bmp) dimensions don't match data."
  1229. );
  1230. #endif
  1231. //
  1232. // Hotend Heater Bitmap starting X position
  1233. //
  1234. #if !defined(STATUS_HEATERS_X) && (STATUS_HOTEND1_WIDTH || STATUS_HEATERS_WIDTH)
  1235. #if STATUS_LOGO_BYTEWIDTH
  1236. #define STATUS_HEATERS_X (STATUS_LOGO_BYTEWIDTH * 8)
  1237. #elif ((STATUS_CHAMBER_WIDTH || STATUS_FAN_WIDTH) && (STATUS_BED_WIDTH && STATUS_HOTEND_BITMAPS == 3)) || \
  1238. ((STATUS_CHAMBER_WIDTH || STATUS_FAN_WIDTH || STATUS_BED_WIDTH) && STATUS_HOTEND_BITMAPS == 4)
  1239. #define STATUS_HEATERS_X 5
  1240. #else
  1241. #if ENABLED(STATUS_COMBINE_HEATERS) && HAS_HEATED_BED && HOTENDS <= 4
  1242. #define STATUS_HEATERS_X 5
  1243. #else
  1244. #define STATUS_HEATERS_X 8 // Like the included bitmaps
  1245. #endif
  1246. #endif
  1247. #endif
  1248. #if STATUS_HOTEND1_WIDTH
  1249. //
  1250. // Hotend images. A base hotend image and optional "ON" state image.
  1251. //
  1252. #ifndef STATUS_HOTEND_BITMAPS
  1253. #define STATUS_HOTEND_BITMAPS 1
  1254. #endif
  1255. #ifndef STATUS_HOTEND2_WIDTH
  1256. #define STATUS_HOTEND2_WIDTH STATUS_HOTEND1_WIDTH
  1257. #endif
  1258. #ifndef STATUS_HOTEND3_WIDTH
  1259. #define STATUS_HOTEND3_WIDTH STATUS_HOTEND2_WIDTH
  1260. #endif
  1261. #ifndef STATUS_HOTEND4_WIDTH
  1262. #define STATUS_HOTEND4_WIDTH STATUS_HOTEND3_WIDTH
  1263. #endif
  1264. #ifndef STATUS_HOTEND5_WIDTH
  1265. #define STATUS_HOTEND5_WIDTH STATUS_HOTEND4_WIDTH
  1266. #endif
  1267. #ifndef STATUS_HOTEND6_WIDTH
  1268. #define STATUS_HOTEND6_WIDTH STATUS_HOTEND5_WIDTH
  1269. #endif
  1270. constexpr uint8_t status_hotend_width[HOTENDS] = ARRAY_N(HOTENDS, STATUS_HOTEND1_WIDTH, STATUS_HOTEND2_WIDTH, STATUS_HOTEND3_WIDTH, STATUS_HOTEND4_WIDTH, STATUS_HOTEND5_WIDTH, STATUS_HOTEND6_WIDTH);
  1271. #define STATUS_HOTEND_WIDTH(N) status_hotend_width[N]
  1272. #ifndef STATUS_HOTEND1_BYTEWIDTH
  1273. #define STATUS_HOTEND1_BYTEWIDTH BW(STATUS_HOTEND1_WIDTH)
  1274. #endif
  1275. #ifndef STATUS_HOTEND2_BYTEWIDTH
  1276. #define STATUS_HOTEND2_BYTEWIDTH BW(STATUS_HOTEND2_WIDTH)
  1277. #endif
  1278. #ifndef STATUS_HOTEND3_BYTEWIDTH
  1279. #define STATUS_HOTEND3_BYTEWIDTH BW(STATUS_HOTEND3_WIDTH)
  1280. #endif
  1281. #ifndef STATUS_HOTEND4_BYTEWIDTH
  1282. #define STATUS_HOTEND4_BYTEWIDTH BW(STATUS_HOTEND4_WIDTH)
  1283. #endif
  1284. #ifndef STATUS_HOTEND5_BYTEWIDTH
  1285. #define STATUS_HOTEND5_BYTEWIDTH BW(STATUS_HOTEND5_WIDTH)
  1286. #endif
  1287. #ifndef STATUS_HOTEND6_BYTEWIDTH
  1288. #define STATUS_HOTEND6_BYTEWIDTH BW(STATUS_HOTEND6_WIDTH)
  1289. #endif
  1290. constexpr uint8_t status_hotend_bytewidth[HOTENDS] = ARRAY_N(HOTENDS, STATUS_HOTEND1_BYTEWIDTH, STATUS_HOTEND2_BYTEWIDTH, STATUS_HOTEND3_BYTEWIDTH, STATUS_HOTEND4_BYTEWIDTH, STATUS_HOTEND5_BYTEWIDTH, STATUS_HOTEND6_BYTEWIDTH);
  1291. #define STATUS_HOTEND_BYTEWIDTH(N) status_hotend_bytewidth[N]
  1292. #ifndef STATUS_HOTEND1_X
  1293. #define STATUS_HOTEND1_X STATUS_HEATERS_X
  1294. #endif
  1295. #ifndef STATUS_HOTEND2_X
  1296. #define STATUS_HOTEND2_X STATUS_HOTEND1_X + STATUS_HEATERS_XSPACE
  1297. #endif
  1298. #if HOTENDS > 2
  1299. #ifndef STATUS_HOTEND3_X
  1300. #define STATUS_HOTEND3_X STATUS_HOTEND2_X + STATUS_HEATERS_XSPACE
  1301. #endif
  1302. #ifndef STATUS_HOTEND4_X
  1303. #define STATUS_HOTEND4_X STATUS_HOTEND3_X + STATUS_HEATERS_XSPACE
  1304. #endif
  1305. #ifndef STATUS_HOTEND5_X
  1306. #define STATUS_HOTEND5_X STATUS_HOTEND4_X + STATUS_HEATERS_XSPACE
  1307. #endif
  1308. #ifndef STATUS_HOTEND6_X
  1309. #define STATUS_HOTEND6_X STATUS_HOTEND5_X + STATUS_HEATERS_XSPACE
  1310. #endif
  1311. constexpr uint8_t status_hotend_x[HOTENDS] = ARRAY_N(HOTENDS, STATUS_HOTEND1_X, STATUS_HOTEND2_X, STATUS_HOTEND3_X, STATUS_HOTEND4_X, STATUS_HOTEND5_X, STATUS_HOTEND6_X);
  1312. #define STATUS_HOTEND_X(N) status_hotend_x[N]
  1313. #elif HOTENDS > 1
  1314. #define STATUS_HOTEND_X(N) ((N) ? STATUS_HOTEND2_X : STATUS_HOTEND1_X)
  1315. #else
  1316. #define STATUS_HOTEND_X(N) STATUS_HOTEND1_X
  1317. #endif
  1318. #ifndef STATUS_HOTEND_TEXT_X
  1319. #ifdef STATUS_HOTEND1_TEXT_X
  1320. #ifndef STATUS_HOTEND2_TEXT_X
  1321. #define STATUS_HOTEND2_TEXT_X STATUS_HOTEND1_TEXT_X + STATUS_HEATERS_XSPACE
  1322. #endif
  1323. #ifndef STATUS_HOTEND3_TEXT_X
  1324. #define STATUS_HOTEND3_TEXT_X STATUS_HOTEND2_TEXT_X + STATUS_HEATERS_XSPACE
  1325. #endif
  1326. #ifndef STATUS_HOTEND4_TEXT_X
  1327. #define STATUS_HOTEND4_TEXT_X STATUS_HOTEND3_TEXT_X + STATUS_HEATERS_XSPACE
  1328. #endif
  1329. #ifndef STATUS_HOTEND5_TEXT_X
  1330. #define STATUS_HOTEND5_TEXT_X STATUS_HOTEND4_TEXT_X + STATUS_HEATERS_XSPACE
  1331. #endif
  1332. #ifndef STATUS_HOTEND6_TEXT_X
  1333. #define STATUS_HOTEND6_TEXT_X STATUS_HOTEND5_TEXT_X + STATUS_HEATERS_XSPACE
  1334. #endif
  1335. constexpr uint8_t status_hotend_text_x[] = ARRAY_N(HOTENDS, STATUS_HOTEND1_TEXT_X, STATUS_HOTEND2_TEXT_X, STATUS_HOTEND3_TEXT_X, STATUS_HOTEND4_TEXT_X, STATUS_HOTEND5_TEXT_X, STATUS_HOTEND6_TEXT_X);
  1336. #define STATUS_HOTEND_TEXT_X(N) status_hotend_text_x[N]
  1337. #else
  1338. #define STATUS_HOTEND_TEXT_X(N) (STATUS_HOTEND1_X + 6 + (N) * (STATUS_HEATERS_XSPACE))
  1339. #endif
  1340. #endif
  1341. #if STATUS_HOTEND_BITMAPS > 1 && DISABLED(STATUS_HOTEND_NUMBERLESS)
  1342. #define TEST_BITMAP_OFF status_hotend1_a_bmp
  1343. #define TEST_BITMAP_ON status_hotend1_b_bmp
  1344. #else
  1345. #define TEST_BITMAP_OFF status_hotend_a_bmp
  1346. #define TEST_BITMAP_ON status_hotend_b_bmp
  1347. #endif
  1348. #ifndef STATUS_HEATERS_HEIGHT
  1349. #define STATUS_HEATERS_HEIGHT (sizeof(TEST_BITMAP_OFF) / (STATUS_HOTEND1_BYTEWIDTH))
  1350. #endif
  1351. #ifndef STATUS_HEATERS_Y
  1352. #define STATUS_HEATERS_Y (20 - (STATUS_HEATERS_HEIGHT))
  1353. #endif
  1354. #define HOTEND0_BITMAP_SIZE (STATUS_HOTEND1_BYTEWIDTH) * (STATUS_HEATERS_HEIGHT)
  1355. static_assert(
  1356. sizeof(TEST_BITMAP_OFF) == HOTEND0_BITMAP_SIZE,
  1357. "Status hotend bitmap (" STRINGIFY(TEST_BITMAP_OFF) ") dimensions don't match data."
  1358. );
  1359. #ifdef STATUS_HOTEND_ANIM
  1360. static_assert(
  1361. sizeof(TEST_BITMAP_ON) == HOTEND0_BITMAP_SIZE,
  1362. "Status hotend bitmaps (" STRINGIFY(TEST_BITMAP_OFF) " and " STRINGIFY(TEST_BITMAP_ON) ") dimensions don't match."
  1363. );
  1364. #endif
  1365. #elif STATUS_HEATERS_WIDTH
  1366. #ifndef STATUS_HEATERS_XSPACE
  1367. #define STATUS_HEATERS_XSPACE 24
  1368. #endif
  1369. #ifndef STATUS_HOTEND_WIDTH
  1370. #define STATUS_HOTEND_WIDTH(N) 10
  1371. #endif
  1372. #ifndef STATUS_HOTEND_X
  1373. #define STATUS_HOTEND_X(N) (STATUS_HEATERS_X + 2 + (N) * (STATUS_HEATERS_XSPACE))
  1374. #endif
  1375. #ifndef STATUS_HOTEND_TEXT_X
  1376. #if HOTENDS == 4 && STATUS_LOGO_WIDTH
  1377. #define STATUS_HOTEND_TEXT_X(N) (STATUS_HEATERS_X + 6 + (N) * (STATUS_HEATERS_XSPACE))
  1378. #else
  1379. #define STATUS_HOTEND_TEXT_X(N) (STATUS_HEATERS_X + 6 + (N) * (STATUS_HEATERS_XSPACE))
  1380. #endif
  1381. #endif
  1382. #ifndef STATUS_HEATERS_BYTEWIDTH
  1383. #define STATUS_HEATERS_BYTEWIDTH BW(STATUS_HEATERS_WIDTH)
  1384. #endif
  1385. #ifndef STATUS_HEATERS_HEIGHT
  1386. #define STATUS_HEATERS_HEIGHT (sizeof(status_heaters_bmp) / (STATUS_HEATERS_BYTEWIDTH))
  1387. #endif
  1388. #ifndef STATUS_HEATERS_Y
  1389. #define STATUS_HEATERS_Y (20 - (STATUS_HEATERS_HEIGHT))
  1390. #endif
  1391. static_assert(
  1392. sizeof(status_heaters_bmp) == (STATUS_HEATERS_BYTEWIDTH) * (STATUS_HEATERS_HEIGHT),
  1393. "Status heaters bitmap (status_heaters_bmp) dimensions don't match data."
  1394. );
  1395. #else // HOTENDS == 0
  1396. #define STATUS_HOTEND_TEXT_X(N) 0
  1397. #define STATUS_HEATERS_Y 0
  1398. #endif
  1399. //
  1400. // Cutter Bitmap Properties
  1401. //
  1402. #ifndef STATUS_CUTTER_BYTEWIDTH
  1403. #define STATUS_CUTTER_BYTEWIDTH BW(STATUS_CUTTER_WIDTH)
  1404. #endif
  1405. #if STATUS_CUTTER_WIDTH
  1406. #ifndef STATUS_CUTTER_X
  1407. #define STATUS_CUTTER_X (LCD_PIXEL_WIDTH - (STATUS_CUTTER_BYTEWIDTH + STATUS_CUTTER_BYTEWIDTH) * 8)
  1408. #endif
  1409. #ifndef STATUS_CUTTER_HEIGHT
  1410. #ifdef STATUS_CUTTER_ANIM
  1411. #define STATUS_CUTTER_HEIGHT(S) ((S) ? sizeof(status_cutter_on_bmp) / (STATUS_CUTTER_BYTEWIDTH) : sizeof(status_cutter_bmp) / (STATUS_CUTTER_BYTEWIDTH))
  1412. #else
  1413. #define STATUS_CUTTER_HEIGHT(S) (sizeof(status_cutter_bmp) / (STATUS_CUTTER_BYTEWIDTH))
  1414. #endif
  1415. #endif
  1416. #ifndef STATUS_CUTTER_Y
  1417. #define STATUS_CUTTER_Y(S) 4
  1418. #endif
  1419. #ifndef STATUS_CUTTER_TEXT_X
  1420. #define STATUS_CUTTER_TEXT_X (STATUS_CUTTER_X -1)
  1421. #endif
  1422. #ifndef STATUS_CUTTER_TEXT_Y
  1423. #define STATUS_CUTTER_TEXT_Y 28
  1424. #endif
  1425. static_assert(
  1426. sizeof(status_cutter_bmp) == (STATUS_CUTTER_BYTEWIDTH) * (STATUS_CUTTER_HEIGHT(0)),
  1427. "Status cutter bitmap (status_cutter_bmp) dimensions don't match data."
  1428. );
  1429. #ifdef STATUS_CUTTER_ANIM
  1430. static_assert(
  1431. sizeof(status_cutter_on_bmp) == (STATUS_CUTTER_BYTEWIDTH) * (STATUS_CUTTER_HEIGHT(1)),
  1432. "Status cutter bitmap (status_cutter_on_bmp) dimensions don't match data."
  1433. );
  1434. #endif
  1435. #endif
  1436. //
  1437. // Chamber Bitmap Properties
  1438. //
  1439. #ifndef STATUS_CHAMBER_BYTEWIDTH
  1440. #define STATUS_CHAMBER_BYTEWIDTH BW(STATUS_CHAMBER_WIDTH)
  1441. #endif
  1442. #if STATUS_CHAMBER_WIDTH
  1443. #ifndef STATUS_CHAMBER_X
  1444. #define STATUS_CHAMBER_X (LCD_PIXEL_WIDTH - (STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH) * 8)
  1445. #endif
  1446. #ifndef STATUS_CHAMBER_HEIGHT
  1447. #ifdef STATUS_CHAMBER_ANIM
  1448. #define STATUS_CHAMBER_HEIGHT(S) ((S) ? sizeof(status_chamber_on_bmp) / (STATUS_CHAMBER_BYTEWIDTH) : sizeof(status_chamber_bmp) / (STATUS_CHAMBER_BYTEWIDTH))
  1449. #else
  1450. #define STATUS_CHAMBER_HEIGHT(S) (sizeof(status_chamber_bmp) / (STATUS_CHAMBER_BYTEWIDTH))
  1451. #endif
  1452. #endif
  1453. #ifndef STATUS_CHAMBER_Y
  1454. #define STATUS_CHAMBER_Y(S) (20 - STATUS_CHAMBER_HEIGHT(S))
  1455. #endif
  1456. #ifndef STATUS_CHAMBER_TEXT_X
  1457. #define STATUS_CHAMBER_TEXT_X (STATUS_CHAMBER_X + 11)
  1458. #endif
  1459. static_assert(
  1460. sizeof(status_chamber_bmp) == (STATUS_CHAMBER_BYTEWIDTH) * (STATUS_CHAMBER_HEIGHT(0)),
  1461. "Status chamber bitmap (status_chamber_bmp) dimensions don't match data."
  1462. );
  1463. #ifdef STATUS_CHAMBER_ANIM
  1464. static_assert(
  1465. sizeof(status_chamber_on_bmp) == (STATUS_CHAMBER_BYTEWIDTH) * (STATUS_CHAMBER_HEIGHT(1)),
  1466. "Status chamber bitmap (status_chamber_on_bmp) dimensions don't match data."
  1467. );
  1468. #endif
  1469. #endif
  1470. //
  1471. // Bed Bitmap Properties
  1472. //
  1473. #ifndef STATUS_BED_BYTEWIDTH
  1474. #define STATUS_BED_BYTEWIDTH BW(STATUS_BED_WIDTH)
  1475. #endif
  1476. #if STATUS_BED_WIDTH && !STATUS_HEATERS_WIDTH
  1477. #ifndef STATUS_BED_X
  1478. #define STATUS_BED_X (LCD_PIXEL_WIDTH - (STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH + STATUS_BED_BYTEWIDTH) * 8)
  1479. #endif
  1480. #ifndef STATUS_BED_HEIGHT
  1481. #ifdef STATUS_BED_ANIM
  1482. #define STATUS_BED_HEIGHT(S) ((S) ? sizeof(status_bed_on_bmp) / (STATUS_BED_BYTEWIDTH) : sizeof(status_bed_bmp) / (STATUS_BED_BYTEWIDTH))
  1483. #else
  1484. #define STATUS_BED_HEIGHT(S) (sizeof(status_bed_bmp) / (STATUS_BED_BYTEWIDTH))
  1485. #endif
  1486. #endif
  1487. #ifndef STATUS_BED_Y
  1488. #define STATUS_BED_Y(S) (20 - STATUS_BED_HEIGHT(S))
  1489. #endif
  1490. #ifndef STATUS_BED_TEXT_X
  1491. #define STATUS_BED_TEXT_X (STATUS_BED_X + 9)
  1492. #endif
  1493. static_assert(
  1494. sizeof(status_bed_bmp) == (STATUS_BED_BYTEWIDTH) * (STATUS_BED_HEIGHT(0)),
  1495. "Status bed bitmap (status_bed_bmp) dimensions don't match data."
  1496. );
  1497. #ifdef STATUS_BED_ANIM
  1498. static_assert(
  1499. sizeof(status_bed_on_bmp) == (STATUS_BED_BYTEWIDTH) * (STATUS_BED_HEIGHT(1)),
  1500. "Status bed bitmap (status_bed_on_bmp) dimensions don't match data."
  1501. );
  1502. #endif
  1503. #endif
  1504. //
  1505. // Fan Bitmap Properties
  1506. //
  1507. #ifndef STATUS_FAN_BYTEWIDTH
  1508. #define STATUS_FAN_BYTEWIDTH BW(STATUS_FAN_WIDTH)
  1509. #endif
  1510. #if STATUS_FAN_FRAMES
  1511. #ifndef STATUS_FAN_X
  1512. #define STATUS_FAN_X (LCD_PIXEL_WIDTH - (STATUS_FAN_BYTEWIDTH) * 8)
  1513. #endif
  1514. #ifndef STATUS_FAN_Y
  1515. #define STATUS_FAN_Y 1
  1516. #endif
  1517. #ifndef STATUS_FAN_TEXT_X
  1518. #define STATUS_FAN_TEXT_X (STATUS_FAN_X - 1)
  1519. #endif
  1520. #ifndef STATUS_FAN_TEXT_Y
  1521. #define STATUS_FAN_TEXT_Y 28
  1522. #endif
  1523. #ifndef STATUS_FAN_HEIGHT
  1524. #define STATUS_FAN_HEIGHT (sizeof(status_fan0_bmp) / (STATUS_FAN_BYTEWIDTH))
  1525. #endif
  1526. #define FAN_BMP_SIZE (STATUS_FAN_BYTEWIDTH) * (STATUS_FAN_HEIGHT)
  1527. static_assert(sizeof(status_fan0_bmp) == FAN_BMP_SIZE, "Status fan bitmap (status_fan0_bmp) dimensions don't match data.");
  1528. #if STATUS_FAN_FRAMES > 1
  1529. static_assert(sizeof(status_fan1_bmp) == FAN_BMP_SIZE, "Status fan bitmap (status_fan1_bmp) dimensions don't match data.");
  1530. #if STATUS_FAN_FRAMES > 2
  1531. static_assert(sizeof(status_fan2_bmp) == FAN_BMP_SIZE, "Status fan bitmap (status_fan2_bmp) dimensions don't match data.");
  1532. #if STATUS_FAN_FRAMES > 3
  1533. static_assert(sizeof(status_fan3_bmp) == FAN_BMP_SIZE, "Status fan bitmap (status_fan3_bmp) dimensions don't match data.");
  1534. #endif
  1535. #endif
  1536. #endif
  1537. #endif
  1538. #define DO_DRAW_LOGO (STATUS_LOGO_WIDTH && ENABLED(CUSTOM_STATUS_SCREEN_IMAGE))
  1539. #define DO_DRAW_HOTENDS (HOTENDS > 0)
  1540. #define DO_DRAW_BED (HAS_HEATED_BED && HOTENDS <= 4)
  1541. #define DO_DRAW_CUTTER (HAS_CUTTER && !DO_DRAW_BED)
  1542. #define DO_DRAW_CHAMBER (HAS_TEMP_CHAMBER && STATUS_CHAMBER_WIDTH && HOTENDS <= 4)
  1543. #define DO_DRAW_FAN (HAS_FAN0 && STATUS_FAN_WIDTH && HOTENDS <= 4 && defined(STATUS_FAN_FRAMES))
  1544. #define ANIM_HOTEND (HOTENDS && ENABLED(STATUS_HOTEND_ANIM))
  1545. #define ANIM_BED (DO_DRAW_BED && ENABLED(STATUS_BED_ANIM))
  1546. #define ANIM_CHAMBER (DO_DRAW_CHAMBER && ENABLED(STATUS_CHAMBER_ANIM))
  1547. #define ANIM_CUTTER (DO_DRAW_CUTTER && ENABLED(STATUS_CUTTER_ANIM))
  1548. #define ANIM_HBCC (ANIM_HOTEND || ANIM_BED || ANIM_CHAMBER || ANIM_CUTTER)