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 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. #define BOARD_INFO_NAME "FYSETC AIO II"
  27. #define BOARD_WEBSITE_URL "fysetc.com"
  28. #define DISABLE_JTAG
  29. #define pins_v2_20190128 // new pins define
  30. // Ignore temp readings during development.
  31. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  32. //
  33. // Flash EEPROM Emulation
  34. //
  35. #if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
  36. #define FLASH_EEPROM_EMULATION
  37. #define EEPROM_PAGE_SIZE (0x800U) // 2KB
  38. #define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
  39. #define MARLIN_EEPROM_SIZE EEPROM_PAGE_SIZE // 2KB
  40. #endif
  41. //
  42. // Limit Switches
  43. //
  44. #define X_STOP_PIN PA1
  45. #define Y_STOP_PIN PA0
  46. #define Z_STOP_PIN PB14
  47. //
  48. // Filament runout
  49. //
  50. #ifdef pins_v2_20190128
  51. #define FIL_RUNOUT_PIN PB15
  52. #else
  53. #define FIL_RUNOUT_PIN PB5
  54. #endif
  55. //
  56. // Steppers
  57. //
  58. #define X_STEP_PIN PB8
  59. #define X_DIR_PIN PB9
  60. #define X_ENABLE_PIN PA8
  61. #define Y_STEP_PIN PB2
  62. #ifdef pins_v2_20190128
  63. #define Y_DIR_PIN PB3
  64. #else
  65. #define Y_DIR_PIN PB0
  66. #endif
  67. #define Y_ENABLE_PIN PB1
  68. #define Z_STEP_PIN PC0
  69. #define Z_DIR_PIN PC1
  70. #define Z_ENABLE_PIN PC2
  71. #define E0_STEP_PIN PC15
  72. #define E0_DIR_PIN PC14
  73. #define E0_ENABLE_PIN PC13
  74. #if HAS_TMC_UART
  75. /**
  76. * TMC2208/TMC2209 stepper drivers
  77. */
  78. //
  79. // Hardware serial with switch
  80. //
  81. #define X_HARDWARE_SERIAL MSerial1
  82. #define Y_HARDWARE_SERIAL MSerial1
  83. #define Z_HARDWARE_SERIAL MSerial1
  84. #define E0_HARDWARE_SERIAL MSerial1
  85. // The 4xTMC2209 module doesn't have a serial multiplexer and
  86. // needs to set *_SLAVE_ADDRESS in Configuration_adv.h for X,Y,Z,E0
  87. #if HAS_DRIVER(TMC2208)
  88. #define TMC_SERIAL_MULTIPLEXER
  89. #define SERIAL_MUL_PIN1 PB13
  90. #define SERIAL_MUL_PIN2 PB12
  91. #endif
  92. #endif
  93. //
  94. // Stepper current PWM
  95. //
  96. #ifndef MOTOR_CURRENT_PWM_RANGE
  97. #define MOTOR_CURRENT_PWM_RANGE 1500 // origin:2000
  98. #endif
  99. #define DEFAULT_PWM_MOTOR_CURRENT { 500, 500, 400 } // origin: {1300,1300,1250}
  100. //
  101. // Heaters / Fans
  102. //
  103. #define HEATER_0_PIN PC7
  104. #define HEATER_BED_PIN PC6
  105. #ifndef FAN_PIN
  106. #define FAN_PIN PC8
  107. #endif
  108. //
  109. // Temperature Sensors
  110. //
  111. #define TEMP_BED_PIN PC5 // Analog Input
  112. #define TEMP_0_PIN PC4 // Analog Input
  113. //
  114. // Misc. Functions
  115. //
  116. #define SDSS PA4
  117. //
  118. // LCD Pins
  119. //
  120. #if HAS_WIRED_LCD
  121. #define BEEPER_PIN PC9
  122. #if HAS_MARLINUI_U8GLIB
  123. #define DOGLCD_A0 PA15
  124. #ifdef pins_v2_20190128
  125. #define DOGLCD_CS PB5
  126. #else
  127. #define DOGLCD_CS PB7
  128. #endif
  129. //#define LCD_CONTRAST_INIT 190
  130. //#define LCD_SCREEN_ROT_90
  131. //#define LCD_SCREEN_ROT_180
  132. //#define LCD_SCREEN_ROT_270
  133. #endif
  134. // not connected to a pin
  135. #define SD_DETECT_PIN PC3
  136. #if IS_NEWPANEL
  137. // The encoder and click button
  138. #define BTN_EN1 PC10
  139. #define BTN_EN2 PC11
  140. #define BTN_ENC PC12
  141. #endif
  142. #ifdef pins_v2_20190128
  143. #define LCD_RESET_PIN PB4
  144. #ifndef RGB_LED_R_PIN
  145. #define RGB_LED_R_PIN PB0
  146. #endif
  147. #ifndef RGB_LED_G_PIN
  148. #define RGB_LED_G_PIN PB6
  149. #endif
  150. #ifndef RGB_LED_B_PIN
  151. #define RGB_LED_B_PIN PB7
  152. #endif
  153. #else
  154. #define LCD_RESET_PIN PB6
  155. #ifndef RGB_LED_R_PIN
  156. #define RGB_LED_R_PIN PB3
  157. #endif
  158. #ifndef RGB_LED_G_PIN
  159. #define RGB_LED_G_PIN PB4
  160. #endif
  161. #ifndef RGB_LED_B_PIN
  162. #define RGB_LED_B_PIN PB5
  163. #endif
  164. #endif
  165. #endif