My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pins_FYSETC_AIO_II.h 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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. #include "env_validate.h"
  24. #define BOARD_INFO_NAME "FYSETC AIO II"
  25. #define BOARD_WEBSITE_URL "fysetc.com"
  26. #define BOARD_NO_NATIVE_USB
  27. #define RESET_STEPPERS_ON_MEDIA_INSERT
  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) // 2K
  38. #define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
  39. #define MARLIN_EEPROM_SIZE EEPROM_PAGE_SIZE // 2K
  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. // Hardware serial with switch
  79. #define X_HARDWARE_SERIAL MSerial2
  80. #define Y_HARDWARE_SERIAL MSerial2
  81. #define Z_HARDWARE_SERIAL MSerial2
  82. #define E0_HARDWARE_SERIAL MSerial2
  83. // Default TMC slave addresses
  84. #ifndef X_SLAVE_ADDRESS
  85. #define X_SLAVE_ADDRESS 0
  86. #endif
  87. #ifndef Y_SLAVE_ADDRESS
  88. #define Y_SLAVE_ADDRESS 1
  89. #endif
  90. #ifndef Z_SLAVE_ADDRESS
  91. #define Z_SLAVE_ADDRESS 2
  92. #endif
  93. #ifndef E0_SLAVE_ADDRESS
  94. #define E0_SLAVE_ADDRESS 3
  95. #endif
  96. // The 4xTMC2209 module doesn't have a serial multiplexer and
  97. // needs to set *_SLAVE_ADDRESS in Configuration_adv.h for X,Y,Z,E0
  98. #if HAS_DRIVER(TMC2208)
  99. #define TMC_SERIAL_MULTIPLEXER
  100. #define SERIAL_MUL_PIN1 PB13
  101. #define SERIAL_MUL_PIN2 PB12
  102. #endif
  103. // Reduce baud rate to improve software serial reliability
  104. #define TMC_BAUD_RATE 19200
  105. #endif
  106. //
  107. // Stepper current PWM
  108. //
  109. #ifndef MOTOR_CURRENT_PWM_RANGE
  110. #define MOTOR_CURRENT_PWM_RANGE 1500 // origin:2000
  111. #endif
  112. #define DEFAULT_PWM_MOTOR_CURRENT { 500, 500, 400 } // origin: {1300,1300,1250}
  113. //
  114. // Heaters / Fans
  115. //
  116. #define HEATER_0_PIN PC7
  117. #define HEATER_BED_PIN PC6
  118. #ifndef FAN_PIN
  119. #define FAN_PIN PC8
  120. #endif
  121. //
  122. // Temperature Sensors
  123. //
  124. #define TEMP_BED_PIN PC5 // Analog Input
  125. #define TEMP_0_PIN PC4 // Analog Input
  126. //
  127. // Misc. Functions
  128. //
  129. #define SDSS PA4
  130. //
  131. // LCD Pins
  132. //
  133. #if HAS_WIRED_LCD
  134. #define BEEPER_PIN PC9
  135. #if HAS_MARLINUI_U8GLIB
  136. #define DOGLCD_A0 PA15
  137. #ifdef pins_v2_20190128
  138. #define DOGLCD_CS PB5
  139. #else
  140. #define DOGLCD_CS PB7
  141. #endif
  142. //#define LCD_CONTRAST_INIT 190
  143. //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
  144. #endif
  145. // not connected to a pin
  146. #define SD_DETECT_PIN PC3
  147. #if IS_NEWPANEL
  148. // The encoder and click button
  149. #define BTN_EN1 PC10
  150. #define BTN_EN2 PC11
  151. #define BTN_ENC PC12
  152. #endif
  153. #ifdef pins_v2_20190128
  154. #define LCD_RESET_PIN PB4
  155. #ifndef RGB_LED_R_PIN
  156. #define RGB_LED_R_PIN PB0
  157. #endif
  158. #ifndef RGB_LED_G_PIN
  159. #define RGB_LED_G_PIN PB6
  160. #endif
  161. #ifndef RGB_LED_B_PIN
  162. #define RGB_LED_B_PIN PB7
  163. #endif
  164. #else
  165. #define LCD_RESET_PIN PB6
  166. #ifndef RGB_LED_R_PIN
  167. #define RGB_LED_R_PIN PB3
  168. #endif
  169. #ifndef RGB_LED_G_PIN
  170. #define RGB_LED_G_PIN PB4
  171. #endif
  172. #ifndef RGB_LED_B_PIN
  173. #define RGB_LED_B_PIN PB5
  174. #endif
  175. #endif
  176. #endif