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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #ifndef __STM32F1__
  23. #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
  24. #endif
  25. #define BOARD_NAME "FYSETC AIO II"
  26. #define BOARD_WEBSITE_URL "https://fysetc.com"
  27. #define pins_v2_20190128 // geo-f:add for new pins define
  28. // Ignore temp readings during develpment.
  29. #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
  30. //
  31. // Limit Switches
  32. //
  33. #define X_STOP_PIN PA1
  34. #define Y_STOP_PIN PA0
  35. #define Z_STOP_PIN PB14
  36. //
  37. // Filament runout
  38. //
  39. #ifdef pins_v2_20190128
  40. #define FIL_RUNOUT_PIN PB15
  41. #else
  42. #define FIL_RUNOUT_PIN PB5
  43. #endif
  44. //
  45. // Steppers
  46. //
  47. #define X_STEP_PIN PB8
  48. #define X_DIR_PIN PB9
  49. #define X_ENABLE_PIN PA8
  50. #define Y_STEP_PIN PB2
  51. #ifdef pins_v2_20190128
  52. #define Y_DIR_PIN PB3
  53. #else
  54. #define Y_DIR_PIN PB0
  55. #endif
  56. #define Y_ENABLE_PIN PB1
  57. #define Z_STEP_PIN PC0
  58. #define Z_DIR_PIN PC1
  59. #define Z_ENABLE_PIN PC2
  60. #define E0_STEP_PIN PC15
  61. #define E0_DIR_PIN PC14
  62. #define E0_ENABLE_PIN PC13
  63. //
  64. // Stepper current PWM
  65. //
  66. // X:PA2 Y:PA3 Z:PB12 E:PB13 // changed for test
  67. #define MOTOR_CURRENT_PWM_XY_PIN PA3
  68. #define MOTOR_CURRENT_PWM_Z_PIN PA2 // PB12
  69. //#define MOTOR_CURRENT_PWM_XY_PIN PB6
  70. //#define MOTOR_CURRENT_PWM_Z_PIN PB7 // PB12
  71. #define MOTOR_CURRENT_PWM_E_PIN -1 // PB13
  72. // Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
  73. #ifndef MOTOR_CURRENT_PWM_RANGE
  74. #define MOTOR_CURRENT_PWM_RANGE 1500 // geo-f:old 2000
  75. #endif
  76. #define DEFAULT_PWM_MOTOR_CURRENT {500, 500, 400} // geo-f:old 1300 1300 1250
  77. // 采用 SDIO PCB从左到右数
  78. // 1:PC10 - SDIO_D2
  79. // 2:PC11 - SDIO_D3
  80. // 3:PD2 - SDIO_CMD
  81. // 4:VCC
  82. // 5:PC12 - SDIO_CK
  83. // 6:VDD
  84. // 7:PC8 - SDIO_D0
  85. // 8:PC9 - SDIO_D1
  86. // 9:PA15 - SD_DETECT_PIN
  87. //
  88. // Heaters / Fans
  89. //
  90. #define HEATER_0_PIN PC7
  91. #define HEATER_BED_PIN PC6
  92. #ifndef FAN_PIN
  93. #define FAN_PIN PC8
  94. #endif
  95. //
  96. // Temperature Sensors
  97. //
  98. #define TEMP_BED_PIN PC5 // Analog Input
  99. #define TEMP_0_PIN PC4 // Analog Input
  100. //
  101. // Misc. Functions
  102. //
  103. #define SDSS PA4
  104. //
  105. // LCD Pins
  106. //
  107. #if HAS_SPI_LCD
  108. #define BEEPER_PIN PC9
  109. #if HAS_GRAPHICAL_LCD
  110. #define DOGLCD_A0 PA15
  111. #ifdef pins_v2_20190128
  112. #define DOGLCD_CS PB5
  113. #else
  114. #define DOGLCD_CS PB7
  115. #endif
  116. //#define LCD_CONTRAST 190
  117. //#define LCD_SCREEN_ROT_90
  118. //#define LCD_SCREEN_ROT_180
  119. //#define LCD_SCREEN_ROT_270
  120. #endif
  121. // not connected to a pin
  122. #define SD_DETECT_PIN PC3
  123. #if ENABLED(NEWPANEL)
  124. // The encoder and click button
  125. #define BTN_EN1 PC10
  126. #define BTN_EN2 PC11
  127. #define BTN_ENC PC12
  128. #endif
  129. #ifdef pins_v2_20190128
  130. #define LCD_RESET_PIN PB4
  131. #ifndef RGB_LED_R_PIN
  132. #define RGB_LED_R_PIN PB0
  133. #endif
  134. #ifndef RGB_LED_G_PIN
  135. #define RGB_LED_G_PIN PB6
  136. #endif
  137. #ifndef RGB_LED_B_PIN
  138. #define RGB_LED_B_PIN PB7
  139. #endif
  140. #else
  141. #define LCD_RESET_PIN PB6
  142. #ifndef RGB_LED_R_PIN
  143. #define RGB_LED_R_PIN PB3
  144. #endif
  145. #ifndef RGB_LED_G_PIN
  146. #define RGB_LED_G_PIN PB4
  147. #endif
  148. #ifndef RGB_LED_B_PIN
  149. #define RGB_LED_B_PIN PB5
  150. #endif
  151. #endif
  152. #endif