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_RAMPS_OLD.h 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. /**
  24. * Arduino Mega with RAMPS v1.0, v1.1, v1.2 pin assignments
  25. */
  26. #include "env_validate.h"
  27. #define BOARD_INFO_NAME "RAMPS <1.2"
  28. // Uncomment the following line for RAMPS v1.0
  29. //#define RAMPS_V_1_0
  30. //
  31. // Limit Switches
  32. //
  33. #define X_MIN_PIN 3
  34. #define X_MAX_PIN 2
  35. #define Y_MIN_PIN 16
  36. #define Y_MAX_PIN 17
  37. #define Z_MIN_PIN 18
  38. #define Z_MAX_PIN 19
  39. //
  40. // Z Probe (when not Z_MIN_PIN)
  41. //
  42. #ifndef Z_MIN_PROBE_PIN
  43. #define Z_MIN_PROBE_PIN 19
  44. #endif
  45. //
  46. // Steppers
  47. //
  48. #define X_STEP_PIN 26
  49. #define X_DIR_PIN 28
  50. #define X_ENABLE_PIN 24
  51. #define Y_STEP_PIN 38
  52. #define Y_DIR_PIN 40
  53. #define Y_ENABLE_PIN 36
  54. #define Z_STEP_PIN 44
  55. #define Z_DIR_PIN 46
  56. #define Z_ENABLE_PIN 42
  57. #define E0_STEP_PIN 32
  58. #define E0_DIR_PIN 34
  59. #define E0_ENABLE_PIN 30
  60. //
  61. // Temperature Sensors
  62. //
  63. #define TEMP_0_PIN 2 // Analog Input
  64. #define TEMP_BED_PIN 1 // Analog Input
  65. // SPI for Max6675 or Max31855 Thermocouple
  66. #if DISABLED(SDSUPPORT)
  67. #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
  68. #else
  69. #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
  70. #endif
  71. //
  72. // Heaters / Fans
  73. //
  74. #if ENABLED(RAMPS_V_1_0)
  75. #define HEATER_0_PIN 12
  76. #define HEATER_BED_PIN -1
  77. #ifndef FAN_PIN
  78. #define FAN_PIN 11
  79. #endif
  80. #else // RAMPS_V_1_1 or RAMPS_V_1_2
  81. #define HEATER_0_PIN 10
  82. #define HEATER_BED_PIN 8
  83. #ifndef FAN_PIN
  84. #define FAN_PIN 9
  85. #endif
  86. #endif
  87. //
  88. // Misc. Functions
  89. //
  90. #define SDPOWER_PIN 48
  91. #define SDSS 53
  92. #define LED_PIN 13
  93. #ifndef CASE_LIGHT_PIN
  94. #define CASE_LIGHT_PIN 45 // Hardware PWM
  95. #endif
  96. //
  97. // M3/M4/M5 - Spindle/Laser Control
  98. //
  99. #define SPINDLE_LASER_ENA_PIN 41 // Pullup or pulldown!
  100. #define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
  101. #define SPINDLE_DIR_PIN 43