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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 BOARD_NAME "Mega Controller"
  32. #define SERVO0_PIN 30
  33. #define SERVO1_PIN 31
  34. #define SERVO2_PIN 32
  35. #define SERVO3_PIN 33
  36. #define X_STEP_PIN 62//A8
  37. #define X_DIR_PIN 63//A9
  38. #define X_ENABLE_PIN 61//A7
  39. #define X_MIN_PIN 43
  40. #define X_MAX_PIN 42 //Max endstops default to disabled "-1", set to commented value to enable.
  41. #define Y_STEP_PIN 65 // A11
  42. #define Y_DIR_PIN 66 // A12
  43. #define Y_ENABLE_PIN 64//A10
  44. #define Y_MIN_PIN 38
  45. #define Y_MAX_PIN 41
  46. #define Z_STEP_PIN 68 // A14
  47. #define Z_DIR_PIN 69 // A15
  48. #define Z_ENABLE_PIN 67 // A13
  49. #define Z_MIN_PIN 40
  50. #define Z_MAX_PIN 37
  51. #define E0_STEP_PIN 23
  52. #define E0_DIR_PIN 24
  53. #define E0_ENABLE_PIN 22
  54. #define E1_STEP_PIN 26
  55. #define E1_DIR_PIN 27
  56. #define E1_ENABLE_PIN 25
  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 HEATER_0_PIN 29 // EXTRUDER 1
  65. #define HEATER_1_PIN 34 // EXTRUDER 2
  66. #if TEMP_SENSOR_0 == -1
  67. #define TEMP_0_PIN 4 // ANALOG NUMBERING
  68. #else
  69. #define TEMP_0_PIN 0 // ANALOG NUMBERING
  70. #endif
  71. #if TEMP_SENSOR_1 == -1
  72. #define TEMP_1_PIN 5 // ANALOG NUMBERING
  73. #else
  74. #define TEMP_1_PIN 2 // ANALOG NUMBERING
  75. #endif
  76. #define TEMP_2_PIN 3 // ANALOG NUMBERING
  77. #define HEATER_BED_PIN 28 // BED
  78. #if TEMP_SENSOR_BED == -1
  79. #define TEMP_BED_PIN 6 // ANALOG NUMBERING
  80. #else
  81. #define TEMP_BED_PIN 1 // ANALOG NUMBERING
  82. #endif
  83. #if ENABLED(MINIPANEL)
  84. #define BEEPER_PIN 46
  85. // Pins for DOGM SPI LCD Support
  86. #define DOGLCD_A0 47
  87. #define DOGLCD_CS 45
  88. #define LCD_PIN_BL 44 // backlight LED on PA3
  89. #define KILL_PIN 12
  90. // GLCD features
  91. //#define LCD_CONTRAST 190
  92. // Uncomment screen orientation
  93. //#define LCD_SCREEN_ROT_90
  94. //#define LCD_SCREEN_ROT_180
  95. //#define LCD_SCREEN_ROT_270
  96. //The encoder and click button
  97. #define BTN_EN1 48
  98. #define BTN_EN2 11
  99. #define BTN_ENC 10 //the click switch
  100. //not connected to a pin
  101. #define SD_DETECT_PIN 49
  102. #endif //Minipanel