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_STM3R_MINI.h 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. * 10 Dec 2017 Victor Perez Marlin for stm32f1 test
  26. */
  27. #define BOARD_INFO_NAME "STM3R Mini"
  28. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  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 PD0
  37. #define Y_STOP_PIN PD1
  38. #define Z_STOP_PIN PD4
  39. //
  40. // Steppers
  41. //
  42. #define X_STEP_PIN PE1
  43. #define X_DIR_PIN PE0
  44. #define X_ENABLE_PIN PC0
  45. #define Y_STEP_PIN PE3
  46. #define Y_DIR_PIN PE2
  47. #define Y_ENABLE_PIN PC1
  48. #define Z_STEP_PIN PE5
  49. #define Z_DIR_PIN PE4
  50. #define Z_ENABLE_PIN PC2
  51. #define E0_STEP_PIN PE7
  52. #define E0_DIR_PIN PE6
  53. #define E0_ENABLE_PIN PC3
  54. #define E1_STEP_PIN PE9
  55. #define E1_DIR_PIN PE8
  56. #define E1_ENABLE_PIN PC4
  57. #define E2_STEP_PIN PE11
  58. #define E2_DIR_PIN PE10
  59. #define E2_ENABLE_PIN PC5
  60. //
  61. // Misc. Functions
  62. //
  63. #define SDSS PA15
  64. #define LED_PIN PB2
  65. //
  66. // Heaters / Fans
  67. //
  68. #define HEATER_0_PIN PD12 // EXTRUDER 1
  69. //#define HEATER_1_PIN PD13
  70. #define HEATER_BED_PIN PB9 // BED
  71. //#define HEATER_BED2_PIN -1 // BED2
  72. //#define HEATER_BED3_PIN -1 // BED3
  73. #ifndef FAN_PIN
  74. #define FAN_PIN PD14
  75. #endif
  76. #define FAN1_PIN PD13
  77. #define FAN_SOFT_PWM_REQUIRED
  78. //
  79. // Temperature Sensors
  80. //
  81. #define TEMP_BED_PIN PA0
  82. #define TEMP_0_PIN PA1
  83. #define TEMP_1_PIN PA2
  84. #define TEMP_2_PIN PA3
  85. // Laser control
  86. #if HAS_CUTTER
  87. #define SPINDLE_LASER_PWM_PIN PB8
  88. #define SPINDLE_LASER_ENA_PIN PD5
  89. #endif
  90. //
  91. // LCD Pins
  92. //
  93. #if HAS_WIRED_LCD
  94. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  95. #error "REPRAPWORLD_GRAPHICAL_LCD is not supported."
  96. #else
  97. #define LCD_PINS_RS PB8
  98. #define LCD_PINS_ENABLE PD2
  99. #define LCD_PINS_D4 PB12
  100. #define LCD_PINS_D5 PB13
  101. #define LCD_PINS_D6 PB14
  102. #define LCD_PINS_D7 PB15
  103. #if !IS_NEWPANEL
  104. #error "Non-NEWPANEL LCD is not supported."
  105. #endif
  106. #endif
  107. #if NEED_TOUCH_PINS
  108. #define TOUCH_CS_PIN PB12 // SPI2_NSS
  109. #define TOUCH_SCK_PIN PB13
  110. #define TOUCH_MOSI_PIN PB14
  111. #define TOUCH_MISO_PIN PB15
  112. #define TOUCH_INT_PIN PC6 // (PenIRQ coming from ADS7843)
  113. #elif IS_NEWPANEL
  114. #if IS_RRD_SC
  115. #error "RRD Smart Controller is not supported."
  116. #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  117. #error "REPRAPWORLD_GRAPHICAL_LCD is not supported."
  118. #elif ENABLED(LCD_I2C_PANELOLU2)
  119. #error "LCD_I2C_PANELOLU2 is not supported."
  120. #elif ENABLED(LCD_I2C_VIKI)
  121. #error "LCD_I2C_VIKI is not supported."
  122. #elif EITHER(VIKI2, miniVIKI)
  123. #error "VIKI2 / miniVIKI is not supported."
  124. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  125. #error "ELB_FULL_GRAPHIC_CONTROLLER is not supported."
  126. #elif ENABLED(MINIPANEL)
  127. #error "MINIPANEL is not supported."
  128. #else
  129. #error "Other generic NEWPANEL LCD is not supported."
  130. #endif
  131. #endif
  132. #endif // HAS_WIRED_LCD