My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_SCOOVO_X9H.h 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 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. #pragma once
  23. /************************************************
  24. * Rambo pin assignments MODIFIED FOR Scoovo X9H
  25. ************************************************/
  26. #ifndef __AVR_ATmega2560__
  27. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  28. #endif
  29. #define BOARD_NAME "Scoovo X9H"
  30. //
  31. // Servos
  32. //
  33. #define SERVO0_PIN 22 // Motor header MX1
  34. #define SERVO1_PIN 23 // Motor header MX2
  35. #define SERVO2_PIN 24 // Motor header MX3
  36. #define SERVO3_PIN 5 // PWM header pin 5
  37. //
  38. // Limit Switches
  39. //
  40. #define X_MIN_PIN 12
  41. #define X_MAX_PIN 24
  42. #define Y_MIN_PIN 11
  43. #define Y_MAX_PIN 23
  44. #define Z_MIN_PIN 10
  45. #define Z_MAX_PIN 30
  46. //
  47. // Z Probe (when not Z_MIN_IN)
  48. //
  49. #ifndef Z_MIN_PROBE_PIN
  50. #define Z_MIN_PROBE_PIN 30
  51. #endif
  52. //
  53. // Steppers
  54. //
  55. #define X_STEP_PIN 37
  56. #define X_DIR_PIN 48
  57. #define X_ENABLE_PIN 29
  58. #define Y_STEP_PIN 36
  59. #define Y_DIR_PIN 49
  60. #define Y_ENABLE_PIN 28
  61. #define Z_STEP_PIN 35
  62. #define Z_DIR_PIN 47
  63. #define Z_ENABLE_PIN 27
  64. #define E0_STEP_PIN 34
  65. #define E0_DIR_PIN 43
  66. #define E0_ENABLE_PIN 26
  67. #define E1_STEP_PIN 33
  68. #define E1_DIR_PIN 42
  69. #define E1_ENABLE_PIN 25
  70. // Microstepping pins - Mapping not from fastio.h (?)
  71. #define X_MS1_PIN 40
  72. #define X_MS2_PIN 41
  73. #define Y_MS1_PIN 69
  74. #define Y_MS2_PIN 39
  75. #define Z_MS1_PIN 68
  76. #define Z_MS2_PIN 67
  77. #define E0_MS1_PIN 65
  78. #define E0_MS2_PIN 66
  79. #define E1_MS1_PIN 63
  80. #define E1_MS2_PIN 64
  81. #define DIGIPOTSS_PIN 38
  82. #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
  83. //
  84. // Temperature Sensors
  85. //
  86. #define TEMP_0_PIN 0 // Analog Input
  87. #define TEMP_BED_PIN 7 // Analog Input
  88. //
  89. // Heaters / Fans
  90. //
  91. #define HEATER_0_PIN 9
  92. #define HEATER_1_PIN 7
  93. #define HEATER_BED_PIN 3
  94. #ifndef FAN_PIN
  95. #define FAN_PIN 8
  96. #endif
  97. #define FAN1_PIN 6
  98. #define FAN2_PIN 2
  99. //
  100. // Misc. Functions
  101. //
  102. #define SDSS 53
  103. #define LED_PIN 13
  104. #define PS_ON_PIN 4
  105. #ifndef FILWIDTH_PIN
  106. #define FILWIDTH_PIN 3 // Analog Input
  107. #endif
  108. //
  109. // LCD / Controller
  110. //
  111. #define LCD_PINS_RS 70 // Ext2_5
  112. #define LCD_PINS_ENABLE 71 // Ext2_7
  113. #define LCD_PINS_D4 72 // Ext2_9 ?
  114. #define LCD_PINS_D5 73 // Ext2_11 ?
  115. #define LCD_PINS_D6 74 // Ext2_13
  116. #define LCD_PINS_D7 75 // Ext2_15 ?
  117. #define BEEPER_PIN -1
  118. #define BTN_HOME 80 // Ext_16
  119. #define BTN_CENTER 81 // Ext_14
  120. #define BTN_ENC BTN_CENTER
  121. #define BTN_RIGHT 82 // Ext_12
  122. #define BTN_LEFT 83 // Ext_10
  123. #define BTN_UP 84 // Ext2_8
  124. #define BTN_DOWN 85 // Ext2_6
  125. #define HOME_PIN BTN_HOME
  126. #if ANY(VIKI2, miniVIKI)
  127. #define BEEPER_PIN 44
  128. // Pins for DOGM SPI LCD Support
  129. #define DOGLCD_A0 70
  130. #define DOGLCD_CS 71
  131. #define LCD_SCREEN_ROT_180
  132. #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
  133. #define STAT_LED_RED_PIN 22
  134. #define STAT_LED_BLUE_PIN 32
  135. #endif // VIKI2/miniVIKI