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.5KB

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