My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins_RAMPS_OLD.h 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * Arduino Mega with RAMPS v1.0, v1.1, v1.2 pin assignments
  3. */
  4. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  5. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  6. #endif
  7. // Uncomment the following line for RAMPS v1.0
  8. //#define RAMPS_V_1_0
  9. #define X_STEP_PIN 26
  10. #define X_DIR_PIN 28
  11. #define X_ENABLE_PIN 24
  12. #define X_MIN_PIN 3
  13. #define X_MAX_PIN 2
  14. #define Y_STEP_PIN 38
  15. #define Y_DIR_PIN 40
  16. #define Y_ENABLE_PIN 36
  17. #define Y_MIN_PIN 16
  18. #define Y_MAX_PIN 17
  19. #define Z_STEP_PIN 44
  20. #define Z_DIR_PIN 46
  21. #define Z_ENABLE_PIN 42
  22. #define Z_MIN_PIN 18
  23. #define Z_MAX_PIN 19
  24. #define E0_STEP_PIN 32
  25. #define E0_DIR_PIN 34
  26. #define E0_ENABLE_PIN 30
  27. #define SDPOWER 48
  28. #define SDSS 53
  29. #define LED_PIN 13
  30. #define PS_ON_PIN -1
  31. #define KILL_PIN -1
  32. #if ENABLED(RAMPS_V_1_0) // RAMPS_V_1_0
  33. #define HEATER_0_PIN 12 // RAMPS 1.0
  34. #define HEATER_BED_PIN -1 // RAMPS 1.0
  35. #define FAN_PIN 11 // RAMPS 1.0
  36. #else // RAMPS_V_1_1 or RAMPS_V_1_2
  37. #define HEATER_0_PIN 10 // RAMPS 1.1
  38. #define HEATER_BED_PIN 8 // RAMPS 1.1
  39. #define FAN_PIN 9 // RAMPS 1.1
  40. #endif
  41. #define HEATER_1_PIN -1
  42. #define HEATER_2_PIN -1
  43. #define TEMP_0_PIN 2 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  44. #define TEMP_1_PIN -1
  45. #define TEMP_2_PIN -1
  46. #define TEMP_BED_PIN 1 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
  47. // SPI for Max6675 Thermocouple
  48. #if DISABLED(SDSUPPORT)
  49. #define MAX6675_SS 66// Do not use pin 53 if there is even the remote possibility of using Display/SD card
  50. #else
  51. #define MAX6675_SS 66// Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
  52. #endif
  53. #if DISABLED(SDSUPPORT)
  54. // these pins are defined in the SD library if building with SD support
  55. #define SCK_PIN 52
  56. #define MISO_PIN 50
  57. #define MOSI_PIN 51
  58. #endif