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.

bed.h 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. //
  24. // lcd/dogm/status/bed.h - Status Screen Bed bitmaps
  25. //
  26. #if ENABLED(STATUS_ALT_BED_BITMAP)
  27. #define STATUS_BED_ANIM
  28. #define STATUS_BED_WIDTH 24
  29. #define STATUS_BED_TEXT_X (STATUS_BED_X + 11)
  30. const unsigned char status_bed_bmp[] PROGMEM = {
  31. B11111111,B11111111,B11000000,
  32. B01000000,B00000000,B00100000,
  33. B00100000,B00000000,B00010000,
  34. B00010000,B00000000,B00001000,
  35. B00001000,B00000000,B00000100,
  36. B00000100,B00000000,B00000010,
  37. B00000011,B11111111,B11111111
  38. };
  39. #if HAS_LEVELING
  40. const unsigned char status_bed_leveled_bmp[] PROGMEM = {
  41. B11111111,B11111111,B11001110,
  42. B01000000,B00100000,B00100100,
  43. B00100000,B00010000,B00010000,
  44. B00011111,B11111111,B11111000,
  45. B00001000,B00000100,B00000100,
  46. B00100100,B00000010,B00000010,
  47. B01110011,B11111111,B11111111
  48. };
  49. #endif
  50. const unsigned char status_bed_on_bmp[] PROGMEM = {
  51. B00000010,B00100010,B00000000,
  52. B00000100,B01000100,B00000000,
  53. B00000100,B01000100,B00000000,
  54. B00000010,B00100010,B00000000,
  55. B00000001,B00010001,B00000000,
  56. B11111111,B11111111,B11000000,
  57. B01000000,B10001000,B10100000,
  58. B00100001,B00010001,B00010000,
  59. B00010010,B00100010,B00001000,
  60. B00001000,B00000000,B00000100,
  61. B00000100,B00000000,B00000010,
  62. B00000011,B11111111,B11111111
  63. };
  64. #if HAS_LEVELING
  65. const unsigned char status_bed_leveled_on_bmp[] PROGMEM = {
  66. B00000010,B00100010,B00000000,
  67. B00000100,B01000100,B00000000,
  68. B00000100,B01000100,B00000000,
  69. B00000010,B00100010,B00000000,
  70. B00000001,B00010001,B00000000,
  71. B11111111,B11111111,B11001110,
  72. B01000000,B10101000,B10100100,
  73. B00100001,B00010001,B00010000,
  74. B00011111,B11111111,B11111000,
  75. B00001000,B00000100,B00000100,
  76. B00100100,B00000010,B00000010,
  77. B01110011,B11111111,B11111111
  78. };
  79. #endif
  80. #else
  81. #define STATUS_BED_WIDTH 21
  82. #ifdef STATUS_BED_ANIM
  83. const unsigned char status_bed_bmp[] PROGMEM = {
  84. B00011111,B11111111,B11111000,
  85. B00011111,B11111111,B11111000
  86. };
  87. const unsigned char status_bed_on_bmp[] PROGMEM = {
  88. B00000100,B00010000,B01000000,
  89. B00000010,B00001000,B00100000,
  90. B00000010,B00001000,B00100000,
  91. B00000100,B00010000,B01000000,
  92. B00001000,B00100000,B10000000,
  93. B00010000,B01000001,B00000000,
  94. B00010000,B01000001,B00000000,
  95. B00001000,B00100000,B10000000,
  96. B00000100,B00010000,B01000000,
  97. B00000000,B00000000,B00000000,
  98. B00011111,B11111111,B11111000,
  99. B00011111,B11111111,B11111000
  100. };
  101. #else
  102. const unsigned char status_bed_bmp[] PROGMEM = {
  103. B00000100,B00010000,B01000000,
  104. B00000010,B00001000,B00100000,
  105. B00000010,B00001000,B00100000,
  106. B00000100,B00010000,B01000000,
  107. B00001000,B00100000,B10000000,
  108. B00010000,B01000001,B00000000,
  109. B00010000,B01000001,B00000000,
  110. B00001000,B00100000,B10000000,
  111. B00000100,B00010000,B01000000,
  112. B00000000,B00000000,B00000000,
  113. B00011111,B11111111,B11111000,
  114. B00011111,B11111111,B11111000
  115. };
  116. #endif
  117. #endif
  118. #ifndef STATUS_BED_X
  119. #define STATUS_BED_X (LCD_PIXEL_WIDTH - (STATUS_BED_BYTEWIDTH + STATUS_CHAMBER_BYTEWIDTH + STATUS_FAN_BYTEWIDTH) * 8 - TERN0(STATUS_HEAT_PERCENT, 4))
  120. #endif