My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pins_LERDGE_K.h 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. //
  29. // Servos
  30. //
  31. //#define SERVO0_PIN PB11
  32. //
  33. // Limit Switches
  34. //
  35. #define X_STOP_PIN PG3
  36. #define Y_STOP_PIN PG4
  37. #define Z_STOP_PIN PG5
  38. //
  39. // Z Probe (when not Z_MIN_PIN)
  40. //
  41. //#ifndef Z_MIN_PROBE_PIN
  42. // #define Z_MIN_PROBE_PIN PG6
  43. //#endif
  44. //
  45. // Filament runout
  46. //
  47. #define FIL_RUNOUT_PIN PE5
  48. #define FIL_RUNOUT2_PIN PE6
  49. //
  50. // Steppers
  51. //
  52. #define X_STEP_PIN PG1
  53. #define X_DIR_PIN PB10
  54. #define X_ENABLE_PIN PG0
  55. //#ifndef X_CS_PIN
  56. // #define X_CS_PIN PE0
  57. //#endif
  58. #define Y_STEP_PIN PF14
  59. #define Y_DIR_PIN PF15
  60. #define Y_ENABLE_PIN PF13
  61. //#ifndef Y_CS_PIN
  62. // #define Y_CS_PIN PE1
  63. //#endif
  64. #define Z_STEP_PIN PF11
  65. #define Z_DIR_PIN PF12
  66. #define Z_ENABLE_PIN PC5
  67. //#ifndef Z_CS_PIN
  68. // #define Z_CS_PIN PE2
  69. //#endif
  70. #define E0_STEP_PIN PC14
  71. #define E0_DIR_PIN PC13
  72. #define E0_ENABLE_PIN PC15
  73. //#ifndef E0_CS_PIN
  74. // #define E0_CS_PIN PE3
  75. //#endif
  76. #define E1_STEP_PIN PF1
  77. #define E1_DIR_PIN PF0
  78. #define E1_ENABLE_PIN PF2
  79. //#ifndef E1_CS_PIN
  80. // #define E1_CS_PIN PE4
  81. //#endif
  82. //
  83. // Temperature Sensors
  84. //
  85. #define TEMP_0_PIN PC1 // Analog Input
  86. #define TEMP_1_PIN PC2 // Analog Input
  87. #define TEMP_BED_PIN PC0 // Analog Input
  88. // Lergde-K can choose thermocouple/thermistor mode in software.
  89. // For use with thermistors, these pins must be OUT/LOW.
  90. // This is done automatically.
  91. #define TEMP_0_TR_ENABLE_PIN PF10
  92. #define TEMP_1_TR_ENABLE_PIN PF9
  93. //
  94. // Heaters / Fans
  95. //
  96. #define HEATER_0_PIN PA1
  97. #define HEATER_1_PIN PA0
  98. #define HEATER_BED_PIN PA2
  99. #ifndef FAN_PIN
  100. #define FAN_PIN PF7
  101. #endif
  102. #define FAN1_PIN PF6
  103. #define FAN2_PIN PF8
  104. #ifndef E0_AUTO_FAN_PIN
  105. #define E0_AUTO_FAN_PIN PF6
  106. #endif
  107. //
  108. // LED / Lighting
  109. //
  110. //#define CASE_LIGHT_PIN_CI -1
  111. //#define CASE_LIGHT_PIN_DO -1
  112. //#define NEOPIXEL_PIN -1
  113. #ifndef RGB_LED_R_PIN
  114. #define RGB_LED_R_PIN PB7
  115. #endif
  116. #ifndef RGB_LED_G_PIN
  117. #define RGB_LED_G_PIN PB8
  118. #endif
  119. #ifndef RGB_LED_B_PIN
  120. #define RGB_LED_B_PIN PB9
  121. #endif
  122. //
  123. // SD support
  124. //
  125. #define SDIO_SUPPORT
  126. //
  127. // Misc. Functions
  128. //
  129. #define SDSS PC11
  130. #define LED_PIN PA15 // Alive
  131. #define PS_ON_PIN -1
  132. #define KILL_PIN -1
  133. #define POWER_LOSS_PIN PA4 // Power-loss / nAC_FAULT
  134. #define SCK_PIN PC12
  135. #define MISO_PIN PC8
  136. #define MOSI_PIN PD2
  137. #define SS_PIN PC11
  138. #define SD_DETECT_PIN PA8
  139. #define BEEPER_PIN PC7
  140. //
  141. // LCD / Controller
  142. //
  143. #define TFT_RESET_PIN PD6
  144. #define TFT_BACKLIGHT_PIN PD3
  145. #define TFT_CS_PIN PD7
  146. #define TFT_RS_PIN PD11
  147. #define TOUCH_CS_PIN PG15
  148. #define TOUCH_SCK_PIN PB3
  149. #define TOUCH_MOSI_PIN PB5
  150. #define TOUCH_MISO_PIN PB4
  151. #define BTN_EN1 PG10
  152. #define BTN_EN2 PG11
  153. #define BTN_ENC PG9