My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_MKS_ROBIN2.h 3.0KB

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