My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pins_A4JP.h 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. * Rambo pin assignments MODIFIED FOR A4JP
  24. ************************************************/
  25. #ifndef __AVR_ATmega2560__
  26. #error Oops! Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
  27. #endif
  28. // Servo support
  29. #define SERVO0_PIN 22 // Motor header MX1
  30. #define SERVO1_PIN 23 // Motor header MX2
  31. #define SERVO2_PIN 24 // Motor header MX3
  32. #define SERVO3_PIN 5 // PWM header pin 5
  33. #if ENABLED(Z_PROBE_SLED)
  34. #define SLED_PIN -1
  35. #endif
  36. #undef X_MS1_PIN
  37. #undef X_MS2_PIN
  38. #undef Y_MS1_PIN
  39. #undef Y_MS2_PIN
  40. #undef Z_MS1_PIN
  41. #undef Z_MS2_PIN
  42. #undef E0_MS1_PIN
  43. #undef E0_MS2_PIN
  44. #undef E1_MS1_PIN
  45. #undef E1_MS2_PIN
  46. #undef DIGIPOTSS_PIN
  47. //Fan_2 2
  48. /*****************
  49. #if ENABLED(ULTRA_LCD)
  50. #define KILL_PIN -1 //was 80 Glen maybe a mistake
  51. #endif // ULTRA_LCD */
  52. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  53. #define BEEPER_PIN 44
  54. // Pins for DOGM SPI LCD Support
  55. #define DOGLCD_A0 70
  56. #define DOGLCD_CS 71
  57. #define LCD_SCREEN_ROT_180
  58. #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
  59. #if ENABLED(TEMP_STAT_LEDS)
  60. #define STAT_LED_RED 22
  61. #define STAT_LED_BLUE 32
  62. #endif
  63. #endif // VIKI2/miniVIKI
  64. #if ENABLED(FILAMENT_SENSOR)
  65. //Filip added pin for Filament sensor analog input
  66. #define FILWIDTH_PIN 3
  67. #endif
  68. /************************************************
  69. * Rambo pin assignments old
  70. ************************************************/
  71. #define LARGE_FLASH true
  72. #define X_STEP_PIN 37
  73. #define X_DIR_PIN 48
  74. #define X_MIN_PIN 12
  75. #define X_MAX_PIN 24
  76. #define X_ENABLE_PIN 29
  77. #define X_MS1_PIN 40
  78. #define X_MS2_PIN 41
  79. #define Y_STEP_PIN 36
  80. #define Y_DIR_PIN 49
  81. #define Y_MIN_PIN 11
  82. #define Y_MAX_PIN 23
  83. #define Y_ENABLE_PIN 28
  84. #define Y_MS1_PIN 69
  85. #define Y_MS2_PIN 39
  86. #define Z_STEP_PIN 35
  87. #define Z_DIR_PIN 47
  88. #define Z_MIN_PIN 10
  89. #define Z_MAX_PIN 30
  90. #define Z_ENABLE_PIN 27
  91. #define Z_MS1_PIN 68
  92. #define Z_MS2_PIN 67
  93. #define HEATER_BED_PIN 3
  94. #define TEMP_BED_PIN 7 //2014/02/04 0:T0 / 1:T1 / 2:T2 / 7:T3
  95. #define HEATER_0_PIN 9
  96. #define TEMP_0_PIN 0
  97. #define HEATER_1_PIN 7
  98. #define TEMP_1_PIN -1
  99. #define HEATER_2_PIN -1
  100. #define TEMP_2_PIN -1
  101. #define E0_STEP_PIN 34
  102. #define E0_DIR_PIN 43
  103. #define E0_ENABLE_PIN 26
  104. #define E0_MS1_PIN 65
  105. #define E0_MS2_PIN 66
  106. #define E1_STEP_PIN 33
  107. #define E1_DIR_PIN 42
  108. #define E1_ENABLE_PIN 25
  109. #define E1_MS1_PIN 63
  110. #define E1_MS2_PIN 64
  111. #define DIGIPOTSS_PIN 38
  112. #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
  113. #define SDPOWER -1
  114. #define SDSS 53
  115. #define LED_PIN 13
  116. #define FAN_PIN 8
  117. #define PS_ON_PIN 4
  118. #define KILL_PIN -1
  119. #define SUICIDE_PIN -1 //PIN that has to be turned on right after start, to keep power flowing.
  120. #define FAN_0_PIN 6 //Glen
  121. #define FAN_1_PIN 2 //Glen
  122. // 2015/12/23
  123. #define LCD_PINS_RS 70 //ext2_5
  124. #define LCD_PINS_ENABLE 71 //ext2_7
  125. #define LCD_PINS_D4 72 ///////Ext2 9 ?
  126. #define LCD_PINS_D5 73 ///////Ext2 11 ?
  127. #define LCD_PINS_D6 74 //ext2_13
  128. #define LCD_PINS_D7 75 ///////Ext2 15 ?
  129. #define BEEPER_PIN -1
  130. #define BTN_HOME 80 //ext_16
  131. #define BTN_CENTER 81 //ext_14
  132. #define BTN_ENC BTN_CENTER
  133. #define BTN_RIGHT 82 //ext_12
  134. #define BTN_LEFT 83 //ext_10
  135. #define BTN_UP 84 //ext2_8
  136. #define BTN_DOWN 85 //ext2_6
  137. #define HOME_PIN BTN_HOME