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_MKS_ROBIN2.h 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. #ifndef STM32F4
  24. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  25. #elif HOTENDS > 2 || E_STEPPERS > 2
  26. #error "MKS_ROBIN2 supports up to 2 hotends / E-steppers."
  27. #endif
  28. #ifndef BOARD_INFO_NAME
  29. #define BOARD_NAME "MKS_ROBIN2"
  30. #endif
  31. #ifndef DEFAULT_MACHINE_NAME
  32. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  33. #endif
  34. #define SRAM_EEPROM_EMULATION
  35. //
  36. // Limit Switches
  37. //
  38. #define X_MIN_PIN PG8
  39. #define X_MAX_PIN PG7
  40. #define Y_MIN_PIN PG6
  41. #define Y_MAX_PIN PG5
  42. #define Z_MIN_PIN PG4
  43. #define Z_MAX_PIN PG3
  44. //
  45. // Servos
  46. //
  47. #define SERVO0_PIN PB0 // XS2-5
  48. #define SERVO1_PIN PF7 // XS1-5
  49. #define SERVO2_PIN PF8 // XS1-6
  50. //
  51. // Steppers
  52. //
  53. #define X_STEP_PIN PE6
  54. #define X_DIR_PIN PE5
  55. #define X_ENABLE_PIN PC13
  56. #define Y_STEP_PIN PE3
  57. #define Y_DIR_PIN PE2
  58. #define Y_ENABLE_PIN PE4
  59. #define Z_STEP_PIN PE0
  60. #define Z_DIR_PIN PB9
  61. #define Z_ENABLE_PIN PE1
  62. #define E0_STEP_PIN PG10
  63. #define E0_DIR_PIN PG9
  64. #define E0_ENABLE_PIN PB8
  65. #define E1_STEP_PIN PD3
  66. #define E1_DIR_PIN PA15
  67. #define E1_ENABLE_PIN PD6
  68. //
  69. // Temperature Sensors
  70. //
  71. #define TEMP_0_PIN PC1 // T1 <-> E0
  72. #define TEMP_1_PIN PC2 // T2 <-> E1
  73. #define TEMP_BED_PIN PC0 // T0 <-> Bed
  74. //
  75. // Heaters / Fans
  76. //
  77. #define HEATER_0_PIN PF3 // Heater0
  78. #define HEATER_1_PIN PF2 // Heater1
  79. #define HEATER_BED_PIN PF4 // Hotbed
  80. #define FAN_PIN PA7 // Fan0
  81. //
  82. // Misc. Functions
  83. //
  84. #define SDSS -1 // PB12
  85. #define SD_DETECT_PIN PF9
  86. #define BEEPER_PIN PG2