My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pins_BEAST.h 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. /**
  25. * 21017 Victor Perez Marlin for stm32f1 test
  26. */
  27. #define BOARD_INFO_NAME "Beast STM32"
  28. #define DEFAULT_MACHINE_NAME "STM32F103RET6"
  29. // Enable I2C_EEPROM for testing
  30. #define I2C_EEPROM
  31. // Ignore temp readings during development.
  32. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  33. //
  34. // Limit Switches
  35. //
  36. #define X_STOP_PIN PD5
  37. #define Y_STOP_PIN PD6
  38. #define Z_STOP_PIN PD7
  39. //
  40. // Steppers
  41. //
  42. #define X_STEP_PIN PE0
  43. #define X_DIR_PIN PE1
  44. #define X_ENABLE_PIN PC0
  45. #define Y_STEP_PIN PE2
  46. #define Y_DIR_PIN PE3
  47. #define Y_ENABLE_PIN PC1
  48. #define Z_STEP_PIN PE4
  49. #define Z_DIR_PIN PE5
  50. #define Z_ENABLE_PIN PC2
  51. #define E0_STEP_PIN PE6
  52. #define E0_DIR_PIN PE7
  53. #define E0_ENABLE_PIN PC3
  54. /**
  55. * TODO: Currently using same Enable pin to all steppers.
  56. */
  57. #define E1_STEP_PIN PE8
  58. #define E1_DIR_PIN PE9
  59. #define E1_ENABLE_PIN PC4
  60. #define E2_STEP_PIN PE10
  61. #define E2_DIR_PIN PE11
  62. #define E2_ENABLE_PIN PC5
  63. //
  64. // Misc. Functions
  65. //
  66. #define SDSS PA15
  67. #define LED_PIN PB2
  68. //
  69. // Heaters / Fans
  70. //
  71. #define HEATER_0_PIN PD12 // EXTRUDER 1
  72. #define HEATER_1_PIN PD13
  73. #define HEATER_2_PIN PD14
  74. #define HEATER_BED_PIN PB9 // BED
  75. #ifndef FAN_PIN
  76. #define FAN_PIN PB10
  77. #endif
  78. #define FAN_SOFT_PWM_REQUIRED
  79. //
  80. // Temperature Sensors
  81. //
  82. #define TEMP_BED_PIN PA0 // Analog Input
  83. #define TEMP_0_PIN PA1 // Analog Input
  84. #define TEMP_1_PIN PA2 // Analog Input
  85. #define TEMP_2_PIN PA3 // Analog Input
  86. //
  87. // LCD Pins
  88. //
  89. #if HAS_WIRED_LCD
  90. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  91. #error "REPRAPWORLD_GRAPHICAL_LCD is not supported."
  92. #else
  93. #define LCD_PINS_RS PB8
  94. #define LCD_PINS_ENABLE PD2
  95. #define LCD_PINS_D4 PB12
  96. #define LCD_PINS_D5 PB13
  97. #define LCD_PINS_D6 PB14
  98. #define LCD_PINS_D7 PB15
  99. #if !IS_NEWPANEL
  100. #error "Non-NEWPANEL LCD is not supported."
  101. #endif
  102. #endif
  103. #if IS_NEWPANEL
  104. #if IS_RRD_SC
  105. #error "RRD Smart Controller is not supported."
  106. #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  107. #error "REPRAPWORLD_GRAPHICAL_LCD is not supported."
  108. #elif ENABLED(LCD_I2C_PANELOLU2)
  109. #error "LCD_I2C_PANELOLU2 is not supported."
  110. #elif ENABLED(LCD_I2C_VIKI)
  111. #error "LCD_I2C_VIKI is not supported."
  112. #elif EITHER(VIKI2, miniVIKI)
  113. #error "VIKI2 / miniVIKI is not supported."
  114. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  115. #error "ELB_FULL_GRAPHIC_CONTROLLER is not supported."
  116. #elif ENABLED(MINIPANEL)
  117. #error "MINIPANEL is not supported."
  118. #else
  119. #error "Other generic NEWPANEL LCD is not supported."
  120. #endif
  121. #endif // IS_NEWPANEL
  122. #endif // HAS_WIRED_LCD