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.3KB

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