My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

pins_MEGACONTROLLER.h 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 || HOTENDS > 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 SDSS 53
  57. #define LED_PIN 13
  58. #define FAN_PIN 39
  59. #define FAN1_PIN 35
  60. #define FAN2_PIN 36
  61. #define FAN_SOFT_PWM
  62. #define CONTROLLERFAN_PIN FAN2_PIN
  63. #define HEATER_0_PIN 29 // EXTRUDER 1
  64. #define HEATER_1_PIN 34 // EXTRUDER 2
  65. #if TEMP_SENSOR_0 == -1
  66. #define TEMP_0_PIN 4 // ANALOG NUMBERING
  67. #else
  68. #define TEMP_0_PIN 0 // ANALOG NUMBERING
  69. #endif
  70. #if TEMP_SENSOR_1 == -1
  71. #define TEMP_1_PIN 5 // ANALOG NUMBERING
  72. #else
  73. #define TEMP_1_PIN 2 // ANALOG NUMBERING
  74. #endif
  75. #define TEMP_2_PIN 3 // ANALOG NUMBERING
  76. #define HEATER_BED_PIN 28 // BED
  77. #if TEMP_SENSOR_BED == -1
  78. #define TEMP_BED_PIN 6 // ANALOG NUMBERING
  79. #else
  80. #define TEMP_BED_PIN 1 // ANALOG NUMBERING
  81. #endif
  82. #if ENABLED(MINIPANEL)
  83. #define BEEPER_PIN 46
  84. // Pins for DOGM SPI LCD Support
  85. #define DOGLCD_A0 47
  86. #define DOGLCD_CS 45
  87. #define LCD_PIN_BL 44 // backlight LED on PA3
  88. #define KILL_PIN 12
  89. // GLCD features
  90. //#define LCD_CONTRAST 190
  91. // Uncomment screen orientation
  92. //#define LCD_SCREEN_ROT_90
  93. //#define LCD_SCREEN_ROT_180
  94. //#define LCD_SCREEN_ROT_270
  95. //The encoder and click button
  96. #define BTN_EN1 48
  97. #define BTN_EN2 11
  98. #define BTN_ENC 10 //the click switch
  99. //not connected to a pin
  100. #define SD_DETECT_PIN 49
  101. #endif //Minipanel