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_MEGACONTROLLER.h 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /**
  2. * Mega controller pin assignments
  3. */
  4. #ifndef __AVR_ATmega2560__
  5. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  6. #endif
  7. #if EXTRUDERS > 3
  8. #error RUMBA supports up to 3 extruders. Comment this line to keep going.
  9. #endif
  10. #define X_STEP_PIN 62//A8
  11. #define X_DIR_PIN 63//A9
  12. #define X_ENABLE_PIN 61//A7
  13. #ifdef DELTA
  14. #define X_MIN_PIN -1
  15. #else
  16. #define X_MIN_PIN 43
  17. #endif //DELTA
  18. #define X_MAX_PIN 42 //2 //Max endstops default to disabled "-1", set to commented value to enable.
  19. #define Y_STEP_PIN 65 // A11
  20. #define Y_DIR_PIN 66 // A12
  21. #define Y_ENABLE_PIN 64//A10
  22. #ifdef DELTA
  23. #define Y_MIN_PIN -1
  24. #else
  25. #define Y_MIN_PIN 38
  26. #endif //DELTA
  27. #define Y_MAX_PIN 41 //15
  28. #define Z_STEP_PIN 68 // A14
  29. #define Z_DIR_PIN 69 // A15
  30. #define Z_ENABLE_PIN 67 // A13
  31. #define Z_MIN_PIN 40
  32. #define Z_MAX_PIN 37
  33. #define E0_STEP_PIN 23
  34. #define E0_DIR_PIN 24
  35. #define E0_ENABLE_PIN 22
  36. #define E1_STEP_PIN 26
  37. #define E1_DIR_PIN 27
  38. #define E1_ENABLE_PIN 25
  39. #define SDPOWER -1
  40. #define SDSS 53
  41. #define LED_PIN 13
  42. #define FAN_PIN 39
  43. #define FAN1_PIN 35
  44. #define FAN2_PIN 36
  45. #define FAN_SOFT_PWM
  46. #define CONTROLLERFAN_PIN 36
  47. #define PS_ON_PIN -1
  48. #define KILL_PIN -1
  49. #define HEATER_0_PIN 29 // EXTRUDER 1
  50. #define HEATER_1_PIN 34 // EXTRUDER 2
  51. #define HEATER_2_PIN -1
  52. #if TEMP_SENSOR_0 == -1
  53. #define TEMP_0_PIN 4 // ANALOG NUMBERING
  54. #else
  55. #define TEMP_0_PIN 0 // ANALOG NUMBERING
  56. #endif
  57. #if TEMP_SENSOR_1 == -1
  58. #define TEMP_1_PIN 5 // ANALOG NUMBERING
  59. #else
  60. #define TEMP_1_PIN 2 // ANALOG NUMBERING
  61. #endif
  62. #define TEMP_2_PIN 3 // ANALOG NUMBERING
  63. #define HEATER_BED_PIN 28 // BED
  64. #if TEMP_SENSOR_BED == -1
  65. #define TEMP_BED_PIN 6 // ANALOG NUMBERING
  66. #else
  67. #define TEMP_BED_PIN 1 // ANALOG NUMBERING
  68. #endif
  69. #ifdef NUM_SERVOS
  70. #define SERVO0_PIN 30
  71. #if NUM_SERVOS > 1
  72. #define SERVO1_PIN 31
  73. #endif
  74. #if NUM_SERVOS > 2
  75. #define SERVO2_PIN 32
  76. #endif
  77. #if NUM_SERVOS > 3
  78. #define SERVO3_PIN 33
  79. #endif
  80. #endif
  81. #ifdef MINIPANEL
  82. #define BEEPER 46
  83. // Pins for DOGM SPI LCD Support
  84. #define DOGLCD_A0 47
  85. #define DOGLCD_CS 45
  86. #define LCD_PIN_BL 44 // backlight LED on PA3
  87. #define KILL_PIN 12
  88. // GLCD features
  89. //#define LCD_CONTRAST 190
  90. // Uncomment screen orientation
  91. // #define LCD_SCREEN_ROT_90
  92. // #define LCD_SCREEN_ROT_180
  93. // #define LCD_SCREEN_ROT_270
  94. //The encoder and click button
  95. #define BTN_EN1 48
  96. #define BTN_EN2 11
  97. #define BTN_ENC 10 //the click switch
  98. //not connected to a pin
  99. #define SDCARDDETECT 49
  100. #endif //Minipanel
  101. //encoder rotation values
  102. #define encrot0 0
  103. #define encrot1 2
  104. #define encrot2 3
  105. #define encrot3 1
  106. #define SERVO0_PIN 5