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_K.h 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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 K supports up to 2 hotends / E-steppers."
  24. #endif
  25. #define BOARD_INFO_NAME "Lerdge K"
  26. #define DEFAULT_MACHINE_NAME "LERDGE"
  27. #define I2C_EEPROM
  28. // Ignore temp readings during develpment.
  29. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  30. //
  31. // Servos
  32. //
  33. //#define SERVO0_PIN PD12
  34. //
  35. // Limit Switches
  36. //
  37. #define X_STOP_PIN PG3
  38. #define Y_STOP_PIN PG4
  39. #define Z_STOP_PIN PG5
  40. //
  41. // Z Probe (when not Z_MIN_PIN)
  42. //
  43. //#ifndef Z_MIN_PROBE_PIN
  44. // #define Z_MIN_PROBE_PIN PB15
  45. //#endif
  46. //
  47. // Filament runout
  48. //
  49. #define FIL_RUNOUT_PIN PE6
  50. #define FIL_RUNOUT2_PIN PE7
  51. //
  52. // Steppers
  53. //
  54. #define X_STEP_PIN PG1
  55. #define X_DIR_PIN PB10
  56. #define X_ENABLE_PIN PG0
  57. //#ifndef X_CS_PIN
  58. // #define X_CS_PIN PE0
  59. //#endif
  60. #define Y_STEP_PIN PF14
  61. #define Y_DIR_PIN PF15
  62. #define Y_ENABLE_PIN PF13
  63. //#ifndef Y_CS_PIN
  64. // #define Y_CS_PIN PE1
  65. //#endif
  66. #define Z_STEP_PIN PF11
  67. #define Z_DIR_PIN PF12
  68. #define Z_ENABLE_PIN PC5
  69. //#ifndef Z_CS_PIN
  70. // #define Z_CS_PIN PE2
  71. //#endif
  72. #define E0_STEP_PIN PC14
  73. #define E0_DIR_PIN PC13
  74. #define E0_ENABLE_PIN PC15
  75. //#ifndef E0_CS_PIN
  76. // #define E0_CS_PIN PE3
  77. //#endif
  78. #define E1_STEP_PIN PF1
  79. #define E1_DIR_PIN PF0
  80. #define E1_ENABLE_PIN PF2
  81. //#ifndef E1_CS_PIN
  82. // #define E1_CS_PIN PE4
  83. //#endif
  84. //
  85. // Temperature Sensors
  86. //
  87. #define TEMP_0_PIN PC1 // Analog Input
  88. #define TEMP_1_PIN PC2 // Analog Input
  89. #define TEMP_BED_PIN PC0 // Analog Input
  90. //
  91. // Heaters / Fans
  92. //
  93. #define HEATER_0_PIN PA1
  94. #define HEATER_1_PIN PA0
  95. #define HEATER_BED_PIN PA2
  96. #ifndef FAN_PIN
  97. #define FAN_PIN PC15
  98. #endif
  99. #define FAN1_PIN PF6
  100. #define FAN2_PIN PF7
  101. #define ORIG_E0_AUTO_FAN_PIN FAN1_PIN // Use this by NOT overriding E0_AUTO_FAN_PIN
  102. //
  103. // LED / Lighting
  104. //
  105. //#define CASE_LIGHT_PIN_CI -1
  106. //#define CASE_LIGHT_PIN_DO -1
  107. //#define NEOPIXEL_PIN -1
  108. //
  109. // Prusa i3 MK2 Multi-Material Multiplexer Support
  110. //
  111. //#define E_MUX0_PIN -1
  112. //#define E_MUX1_PIN -1
  113. //
  114. // SD support
  115. //
  116. #define SDIO_SUPPORT
  117. //
  118. // Misc. Functions
  119. //
  120. #define SDSS PC11
  121. #define LED_PIN PC7 // Alive
  122. #define PS_ON_PIN -1
  123. #define KILL_PIN -1
  124. #define POWER_LOSS_PIN -1 // Power-loss / nAC_FAULT
  125. #define SCK_PIN PC12
  126. #define MISO_PIN PC8
  127. #define MOSI_PIN PD2
  128. #define SS_PIN PC11
  129. //
  130. // LCD / Controller
  131. //
  132. // TODO: Replace these with the correct FSMC pins, once known
  133. #define SD_DETECT_PIN -1
  134. #define BEEPER_PIN PD12
  135. #define LCD_PINS_RS -1
  136. #define LCD_PINS_ENABLE -1
  137. #define LCD_PINS_D4 -1
  138. #define LCD_PINS_D5 -1
  139. #define LCD_PINS_D6 -1
  140. #define LCD_PINS_D7 -1
  141. #define BTN_EN1 PE3
  142. #define BTN_EN2 PE4
  143. #define BTN_ENC PE2
  144. //
  145. // ST7920 Delays
  146. //
  147. #if HAS_GRAPHICAL_LCD
  148. #define BOARD_ST7920_DELAY_1 DELAY_NS(96)
  149. #define BOARD_ST7920_DELAY_2 DELAY_NS(48)
  150. #define BOARD_ST7920_DELAY_3 DELAY_NS(715)
  151. #endif