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 3.1KB

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