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.

pins_KRATOS32.h 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2021 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. * KRATOS32
  25. */
  26. #include "env_validate.h"
  27. #define BOARD_INFO_NAME "K.3D KRATOS32"
  28. //
  29. // EEPROM
  30. //
  31. #if EITHER(NO_EEPROM_SELECTED, I2C_EEPROM)
  32. #define I2C_EEPROM
  33. #define MARLIN_EEPROM_SIZE 0x1F400 // 16K
  34. #endif
  35. //
  36. // Servos
  37. //
  38. #define SERVO0_PIN 6
  39. #define SERVO1_PIN 5
  40. #define SERVO2_PIN 39
  41. #define SERVO3_PIN 40 // CAMERA_PIN (extended to the top of the LCD module)
  42. #define SERVO4_PIN 45 // FIL_RUNOUT_PIN
  43. //
  44. // Limit Switches
  45. //
  46. #define X_MIN_PIN 28
  47. #define X_MAX_PIN 34
  48. #define Y_MIN_PIN 30
  49. #define Y_MAX_PIN 36
  50. #define Z_MIN_PIN 32
  51. #define Z_MAX_PIN 38
  52. //
  53. // Steppers
  54. //
  55. #define X_STEP_PIN 24
  56. #define X_DIR_PIN 23
  57. #define X_ENABLE_PIN 26
  58. #ifndef X_CS_PIN
  59. #define X_CS_PIN 25
  60. #endif
  61. #define Y_STEP_PIN 17
  62. #define Y_DIR_PIN 16
  63. #define Y_ENABLE_PIN 22
  64. #ifndef Y_CS_PIN
  65. #define Y_CS_PIN 27
  66. #endif
  67. #define Z_STEP_PIN 2
  68. #define Z_DIR_PIN 3
  69. #define Z_ENABLE_PIN 15
  70. #ifndef Z_CS_PIN
  71. #define Z_CS_PIN 29
  72. #endif
  73. #define E0_STEP_PIN 61
  74. #define E0_DIR_PIN 60
  75. #define E0_ENABLE_PIN 62
  76. #ifndef E0_CS_PIN
  77. #define E0_CS_PIN 31
  78. #endif
  79. #define E1_STEP_PIN 64
  80. #define E1_DIR_PIN 63
  81. #define E1_ENABLE_PIN 65
  82. #ifndef E1_CS_PIN
  83. #define E1_CS_PIN 37
  84. #endif
  85. #define E2_STEP_PIN 68
  86. #define E2_DIR_PIN 67
  87. #define E2_ENABLE_PIN 69
  88. #ifndef E2_CS_PIN
  89. #define E2_CS_PIN 35
  90. #endif
  91. #define E3_STEP_PIN 51
  92. #define E3_DIR_PIN 53
  93. #define E3_ENABLE_PIN 49
  94. #ifndef E3_CS_PIN
  95. #define E3_CS_PIN 33
  96. #endif
  97. //
  98. // Temperature Sensors
  99. //
  100. #define TEMP_0_PIN 0 // Analog Input
  101. #define TEMP_1_PIN 1 // Analog Input
  102. #define TEMP_2_PIN 2 // Analog Input
  103. #define TEMP_3_PIN 3 // Analog Input
  104. #define TEMP_BED_PIN 4 // Analog Input
  105. //
  106. // Heaters / Fans
  107. //
  108. #define HEATER_0_PIN 13
  109. #define HEATER_1_PIN 12
  110. #define HEATER_2_PIN 11
  111. #define HEATER_3_PIN 10
  112. #define HEATER_BED_PIN 7 // BED
  113. #ifndef FAN_PIN
  114. #define FAN_PIN 9
  115. #endif
  116. #define FAN1_PIN 8
  117. //
  118. // Misc. Functions
  119. //
  120. #ifndef FIL_RUNOUT_PIN
  121. #define FIL_RUNOUT_PIN 45 // SERVO4_PIN
  122. #endif
  123. #ifndef PS_ON_PIN
  124. #define PS_ON_PIN 59
  125. #endif
  126. //
  127. // LCD / Controller
  128. //
  129. #if HAS_WIRED_LCD
  130. #define BTN_EN1 48
  131. #define BTN_EN2 50
  132. #define BTN_ENC 46
  133. #define SDSS 4
  134. #define SD_DETECT_PIN 14
  135. #define BEEPER_PIN 41
  136. #define KILL_PIN 66
  137. #if IS_RRD_FG_SC
  138. #define LCD_PINS_RS 42
  139. #define LCD_PINS_ENABLE 43
  140. #define LCD_PINS_D4 44
  141. #define BTN_BACK 52
  142. #elif ENABLED(K3D_242_OLED_CONTROLLER)
  143. #define LCD_PINS_DC 44
  144. #define LCD_PINS_RS 42
  145. #define DOGLCD_CS 52
  146. #define DOGLCD_MOSI 43
  147. #define DOGLCD_SCK 47
  148. #define DOGLCD_A0 LCD_PINS_DC
  149. #endif
  150. #endif // HAS_WIRED_LCD