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_FLY_MINI.h 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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 "FLY_MINI"
  27. #define BOARD_WEBSITE_URL "github.com/FLYmaker"
  28. #define DISABLE_JTAG
  29. //
  30. // Flash EEPROM Emulation
  31. //
  32. #define FLASH_EEPROM_EMULATION
  33. #define EEPROM_PAGE_SIZE 0x800 // 2KB
  34. #define EEPROM_START_ADDRESS (0x8000000 + 256 * 1024 - 2 * EEPROM_PAGE_SIZE) // 256K firmware space
  35. #define MARLIN_EEPROM_SIZE EEPROM_PAGE_SIZE
  36. //
  37. // Servos
  38. //
  39. #define SERVO0_PIN PA8
  40. //
  41. // Limit Switches
  42. //
  43. #define X_MIN_PIN PC12
  44. #define X_MAX_PIN PC11
  45. #define Y_MIN_PIN PC10
  46. #define Y_MAX_PIN PA15
  47. #define Z_MIN_PIN PA14
  48. #define Z_MAX_PIN PA13
  49. //
  50. // Steppers
  51. //
  52. #define X_STEP_PIN PB1
  53. #define X_DIR_PIN PB2
  54. #define X_ENABLE_PIN PB10
  55. #ifndef X_CS_PIN
  56. #define X_CS_PIN PB0
  57. #endif
  58. #define Y_STEP_PIN PA2
  59. #define Y_DIR_PIN PC4
  60. #define Y_ENABLE_PIN PC5
  61. #ifndef Y_CS_PIN
  62. #define Y_CS_PIN PA7
  63. #endif
  64. #define Z_STEP_PIN PA3
  65. #define Z_DIR_PIN PA5
  66. #define Z_ENABLE_PIN PA6
  67. #ifndef Z_CS_PIN
  68. #define Z_CS_PIN PA4
  69. #endif
  70. #define E0_STEP_PIN PA1
  71. #define E0_DIR_PIN PC3
  72. #define E0_ENABLE_PIN PA0
  73. #ifndef E0_CS_PIN
  74. #define E0_CS_PIN PC2
  75. #endif
  76. #if ENABLED(TMC_USE_SW_SPI)
  77. #ifndef TMC_SW_MOSI
  78. #define TMC_SW_MOSI PB15
  79. #endif
  80. #ifndef TMC_SW_MISO
  81. #define TMC_SW_MISO PB14
  82. #endif
  83. #ifndef TMC_SW_SCK
  84. #define TMC_SW_SCK PB13
  85. #endif
  86. #endif
  87. #if HAS_TMC_UART
  88. //
  89. // Software serial
  90. //
  91. #define X_SERIAL_TX_PIN PB0
  92. #define X_SERIAL_RX_PIN PB0
  93. #define Y_SERIAL_TX_PIN PA7
  94. #define Y_SERIAL_RX_PIN PA7
  95. #define Z_SERIAL_TX_PIN PA4
  96. #define Z_SERIAL_RX_PIN PA4
  97. #define E0_SERIAL_TX_PIN PC2
  98. #define E0_SERIAL_RX_PIN PC2
  99. #endif
  100. //
  101. // Heaters / Fans
  102. //
  103. #define HEATER_0_PIN PC6
  104. #define HEATER_BED_PIN PC7
  105. #ifndef FAN_PIN
  106. #define FAN_PIN PC8
  107. #endif
  108. #define FAN1_PIN PC9
  109. //
  110. // Temperature Sensors
  111. //
  112. #define TEMP_BED_PIN PC0 // Analog Input
  113. #define TEMP_0_PIN PC1 // Analog Input
  114. //
  115. // LCD Pins
  116. //
  117. //
  118. // LCD / Controller
  119. //
  120. #define SPI_DEVICE 2
  121. #define SS_PIN PB12
  122. #define SCK_PIN PB13
  123. #define MISO_PIN PB14
  124. #define MOSI_PIN PB15
  125. #define SDSS SS_PIN
  126. #define SD_DETECT_PIN PB11
  127. #define BEEPER_PIN PC14
  128. #define LCD_PINS_RS PB8
  129. #define LCD_PINS_ENABLE PB9
  130. #define LCD_PINS_D4 PB7
  131. #define LCD_PINS_D5 PB6
  132. #define LCD_PINS_D6 PB5
  133. #define LCD_PINS_D7 PB4
  134. #define BTN_EN1 PD2
  135. #define BTN_EN2 PB3
  136. #define BTN_ENC PC13
  137. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  138. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  139. #endif
  140. //
  141. // Filament runout
  142. //
  143. //
  144. // ST7920 Delays
  145. //
  146. #ifndef ST7920_DELAY_1
  147. #define ST7920_DELAY_1 DELAY_NS(96)
  148. #endif
  149. #ifndef ST7920_DELAY_2
  150. #define ST7920_DELAY_2 DELAY_NS(48)
  151. #endif
  152. #ifndef ST7920_DELAY_3
  153. #define ST7920_DELAY_3 DELAY_NS(715)
  154. #endif