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_LERDGE_X.h 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. */
  19. #pragma once
  20. #if !defined(STM32F4) && !defined(STM32F4xx)
  21. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  22. #elif HOTENDS > 2 || E_STEPPERS > 2
  23. #error "LERDGE X supports up to 2 hotends / E-steppers."
  24. #endif
  25. #define BOARD_INFO_NAME "Lerdge X"
  26. #define DEFAULT_MACHINE_NAME "LERDGE"
  27. //#define I2C_EEPROM
  28. //
  29. // Servos
  30. //
  31. //#define SERVO0_PIN PD12
  32. //#define SERVO1_PIN -1
  33. //
  34. // Limit Switches
  35. //
  36. #define X_STOP_PIN PB12
  37. #define Y_STOP_PIN PB13
  38. #define Z_STOP_PIN PB14
  39. //
  40. // Filament runout
  41. //
  42. #define FIL_RUNOUT_PIN PE1
  43. //
  44. // Z Probe (when not Z_MIN_PIN)
  45. //
  46. //#ifndef Z_MIN_PROBE_PIN
  47. // #define Z_MIN_PROBE_PIN PB15
  48. //#endif
  49. //
  50. // Steppers
  51. //
  52. #define X_STEP_PIN PB10
  53. #define X_DIR_PIN PB2
  54. #define X_ENABLE_PIN PB11
  55. //#ifndef X_CS_PIN
  56. // #define X_CS_PIN PD1
  57. //#endif
  58. #define Y_STEP_PIN PB0
  59. #define Y_DIR_PIN PC5
  60. #define Y_ENABLE_PIN PB1
  61. //#ifndef Y_CS_PIN
  62. // #define Y_CS_PIN PE12
  63. //#endif
  64. #define Z_STEP_PIN PA7
  65. #define Z_DIR_PIN PA6
  66. #define Z_ENABLE_PIN PC4
  67. //#ifndef Z_CS_PIN
  68. // #define Z_CS_PIN PD5
  69. //#endif
  70. #define E0_STEP_PIN PA4
  71. #define E0_DIR_PIN PA3
  72. #define E0_ENABLE_PIN PA5
  73. //#ifndef E0_CS_PIN
  74. // #define E0_CS_PIN PB4
  75. //#endif
  76. #define E1_STEP_PIN -1
  77. #define E1_DIR_PIN -1
  78. #define E1_ENABLE_PIN -1
  79. //#ifndef E1_CS_PIN
  80. // #define E1_CS_PIN PE5
  81. //#endif
  82. //
  83. // Temperature Sensors
  84. //
  85. #define TEMP_0_PIN PC0 // Analog Input
  86. #define TEMP_1_PIN -1 // Analog Input
  87. #define TEMP_BED_PIN PC1 // Analog Input
  88. //
  89. // Heaters / Fans
  90. //
  91. #define HEATER_0_PIN PA1
  92. #define HEATER_1_PIN -1
  93. #define HEATER_BED_PIN PA2
  94. #ifndef FAN_PIN
  95. // #define FAN_PIN PC15
  96. #endif
  97. #define FAN1_PIN PC15
  98. #define FAN2_PIN PA0
  99. #define ORIG_E0_AUTO_FAN_PIN PC15 // Use this by NOT overriding E0_AUTO_FAN_PIN
  100. //
  101. // Prusa i3 MK2 Multi Material Multiplexer Support
  102. //
  103. //#define E_MUX0_PIN -1
  104. //#define E_MUX1_PIN -1
  105. //
  106. // LED / Lighting
  107. //
  108. //#define CASE_LIGHT_PIN_CI -1
  109. //#define CASE_LIGHT_PIN_DO -1
  110. //#define NEOPIXEL_PIN -1
  111. //
  112. // Misc. Functions
  113. //
  114. #define SDSS PC11
  115. #define LED_PIN PC7 // Alive
  116. #define PS_ON_PIN -1
  117. #define KILL_PIN -1
  118. #define POWER_LOSS_PIN -1 // Power-loss / nAC_FAULT
  119. #define SCK_PIN PC12
  120. #define MISO_PIN PC8
  121. #define MOSI_PIN PD2
  122. #define SS_PIN PC11
  123. //
  124. // SD support
  125. //
  126. #define SDIO_SUPPORT
  127. //
  128. // LCD / Controller
  129. //
  130. // The LCD is initialized in FSMC mode
  131. #define SD_DETECT_PIN -1
  132. #define BEEPER_PIN PD12
  133. #define BTN_EN1 PE3
  134. #define BTN_EN2 PE4
  135. #define BTN_ENC PE2
  136. #define LCD_RESET_PIN PD6
  137. #define LCD_BACKLIGHT_PIN PD3
  138. #define FSMC_CS_PIN PD4
  139. #define FSMC_RS_PIN PD11
  140. #define TOUCH_CS PB6
  141. //
  142. // ST7920 Delays
  143. //
  144. #if HAS_GRAPHICAL_LCD
  145. #define BOARD_ST7920_DELAY_1 DELAY_NS(96)
  146. #define BOARD_ST7920_DELAY_2 DELAY_NS(48)
  147. #define BOARD_ST7920_DELAY_3 DELAY_NS(715)
  148. #endif