My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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. #if NOT_TARGET(__STM32F1__)
  24. #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
  25. #endif
  26. /**
  27. * 21017 Victor Perez Marlin for stm32f1 test
  28. */
  29. #define BOARD_INFO_NAME "Misc. STM32F1R"
  30. #define DEFAULT_MACHINE_NAME "STM32F103RET6"
  31. // Ignore temp readings during development.
  32. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  33. //
  34. // Limit Switches
  35. //
  36. #define X_STOP_PIN PB3
  37. #define Y_STOP_PIN PB4
  38. #define Z_STOP_PIN PB5
  39. //
  40. // Steppers
  41. //
  42. #define X_STEP_PIN PC0
  43. #define X_DIR_PIN PC1
  44. #define X_ENABLE_PIN PA8
  45. #define Y_STEP_PIN PC2
  46. #define Y_DIR_PIN PC3
  47. #define Y_ENABLE_PIN PA8
  48. #define Z_STEP_PIN PC4
  49. #define Z_DIR_PIN PC5
  50. #define Z_ENABLE_PIN PA8
  51. #define E0_STEP_PIN PC6
  52. #define E0_DIR_PIN PC7
  53. #define E0_ENABLE_PIN PA8
  54. /**
  55. * TODO: Currently using same Enable pin to all steppers.
  56. */
  57. #define E1_STEP_PIN PC8
  58. #define E1_DIR_PIN PC9
  59. #define E1_ENABLE_PIN PA8
  60. #define E2_STEP_PIN PC10
  61. #define E2_DIR_PIN PC11
  62. #define E2_ENABLE_PIN PA8
  63. //
  64. // Misc. Functions
  65. //
  66. #define SDSS PA4
  67. #define LED_PIN PD2
  68. //
  69. // Heaters / Fans
  70. //
  71. #define HEATER_0_PIN PB0 // EXTRUDER 1
  72. #define HEATER_1_PIN PB1
  73. #define HEATER_BED_PIN PA3 // BED
  74. //
  75. // Temperature Sensors
  76. //
  77. #define TEMP_BED_PIN PA0 // Analog Input
  78. #define TEMP_0_PIN PA1 // Analog Input
  79. #define TEMP_1_PIN PA2 // Analog Input
  80. //
  81. // LCD Pins
  82. //
  83. #if HAS_WIRED_LCD
  84. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  85. #define LCD_PINS_RS 49 // CS chip select /SS chip slave select
  86. #define LCD_PINS_ENABLE 51 // SID (MOSI)
  87. #define LCD_PINS_D4 52 // SCK (CLK) clock
  88. #elif BOTH(IS_NEWPANEL, PANEL_ONE)
  89. #define LCD_PINS_RS PB8
  90. #define LCD_PINS_ENABLE PD2
  91. #define LCD_PINS_D4 PB12
  92. #define LCD_PINS_D5 PB13
  93. #define LCD_PINS_D6 PB14
  94. #define LCD_PINS_D7 PB15
  95. #else
  96. #define LCD_PINS_RS PB8
  97. #define LCD_PINS_ENABLE PD2
  98. #define LCD_PINS_D4 PB12
  99. #define LCD_PINS_D5 PB13
  100. #define LCD_PINS_D6 PB14
  101. #define LCD_PINS_D7 PB15
  102. #if !IS_NEWPANEL
  103. #define BEEPER_PIN 33
  104. // Buttons attached to a shift register
  105. // Not wired yet
  106. //#define SHIFT_CLK 38
  107. //#define SHIFT_LD 42
  108. //#define SHIFT_OUT 40
  109. //#define SHIFT_EN 17
  110. #endif
  111. #endif
  112. #if IS_NEWPANEL
  113. #if IS_RRD_SC
  114. #define BEEPER_PIN 37
  115. #define BTN_EN1 31
  116. #define BTN_EN2 33
  117. #define BTN_ENC 35
  118. #define SD_DETECT_PIN 49
  119. #define KILL_PIN 41
  120. #if ENABLED(BQ_LCD_SMART_CONTROLLER)
  121. #define LCD_BACKLIGHT_PIN 39
  122. #endif
  123. #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  124. #define BTN_EN1 64
  125. #define BTN_EN2 59
  126. #define BTN_ENC 63
  127. #define SD_DETECT_PIN 42
  128. #elif ENABLED(LCD_I2C_PANELOLU2)
  129. #define BTN_EN1 47
  130. #define BTN_EN2 43
  131. #define BTN_ENC 32
  132. #define LCD_SDSS 53
  133. #define SD_DETECT_PIN -1
  134. #define KILL_PIN 41
  135. #elif ENABLED(LCD_I2C_VIKI)
  136. #define BTN_EN1 22 // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
  137. #define BTN_EN2 7 // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
  138. #define BTN_ENC -1
  139. #define LCD_SDSS 53
  140. #define SD_DETECT_PIN 49
  141. #elif ANY(VIKI2, miniVIKI)
  142. #define BEEPER_PIN 33
  143. // Pins for DOGM SPI LCD Support
  144. #define DOGLCD_A0 44
  145. #define DOGLCD_CS 45
  146. #define LCD_SCREEN_ROT_180
  147. #define BTN_EN1 22
  148. #define BTN_EN2 7
  149. #define BTN_ENC 39
  150. #define SDSS 53
  151. #define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
  152. #define KILL_PIN 31
  153. #define STAT_LED_RED_PIN 32
  154. #define STAT_LED_BLUE_PIN 35
  155. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  156. #define BTN_EN1 35
  157. #define BTN_EN2 37
  158. #define BTN_ENC 31
  159. #define SD_DETECT_PIN 49
  160. #define LCD_SDSS 53
  161. #define KILL_PIN 41
  162. #define BEEPER_PIN 23
  163. #define DOGLCD_CS 29
  164. #define DOGLCD_A0 27
  165. #define LCD_BACKLIGHT_PIN 33
  166. #elif ENABLED(MINIPANEL)
  167. #define BEEPER_PIN 42
  168. // Pins for DOGM SPI LCD Support
  169. #define DOGLCD_A0 44
  170. #define DOGLCD_CS 66
  171. #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
  172. #define SDSS 53
  173. #define KILL_PIN 64
  174. // GLCD features
  175. // Uncomment screen orientation
  176. //#define LCD_SCREEN_ROT_90
  177. //#define LCD_SCREEN_ROT_180
  178. //#define LCD_SCREEN_ROT_270
  179. // The encoder and click button
  180. #define BTN_EN1 40
  181. #define BTN_EN2 63
  182. #define BTN_ENC 59
  183. // not connected to a pin
  184. #define SD_DETECT_PIN 49
  185. #else
  186. // Beeper on AUX-4
  187. #define BEEPER_PIN 33
  188. // Buttons directly attached to AUX-2
  189. #if IS_RRW_KEYPAD
  190. #define BTN_EN1 64
  191. #define BTN_EN2 59
  192. #define BTN_ENC 63
  193. #define SHIFT_OUT 40
  194. #define SHIFT_CLK 44
  195. #define SHIFT_LD 42
  196. #elif ENABLED(PANEL_ONE)
  197. #define BTN_EN1 59 // AUX2 PIN 3
  198. #define BTN_EN2 63 // AUX2 PIN 4
  199. #define BTN_ENC 49 // AUX3 PIN 7
  200. #else
  201. #define BTN_EN1 37
  202. #define BTN_EN2 35
  203. #define BTN_ENC 31
  204. #endif
  205. #if ENABLED(G3D_PANEL)
  206. #define SD_DETECT_PIN 49
  207. #define KILL_PIN 41
  208. #else
  209. //#define SD_DETECT_PIN -1 // Ramps doesn't use this
  210. #endif
  211. #endif
  212. #endif // IS_NEWPANEL
  213. #endif // HAS_WIRED_LCD