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

pins_MEGATRONICS_3.h 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /**
  2. * MegaTronics v3.0 pin assignments
  3. */
  4. #ifndef __AVR_ATmega2560__
  5. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  6. #endif
  7. #define LARGE_FLASH true
  8. // Servo support
  9. #ifdef NUM_SERVOS
  10. #define SERVO0_PIN 46 //AUX3-6
  11. #if NUM_SERVOS > 1
  12. #define SERVO1_PIN 47 //AUX3-5
  13. #if NUM_SERVOS > 2
  14. #define SERVO2_PIN 48 //AUX3-4
  15. #if NUM_SERVOS > 3
  16. #define SERVO2_PIN 49 //AUX3-3
  17. #endif
  18. #endif
  19. #endif
  20. #endif
  21. #define X_STEP_PIN 58
  22. #define X_DIR_PIN 57
  23. #define X_ENABLE_PIN 59
  24. #define X_MIN_PIN 37
  25. #define X_MAX_PIN 40 // 2 // Max endstops default to disabled "-1", set to commented value to enable.
  26. #define Y_STEP_PIN 5 // A6
  27. #define Y_DIR_PIN 17 // A0
  28. #define Y_ENABLE_PIN 4
  29. #define Y_MIN_PIN 41
  30. #define Y_MAX_PIN 38 // 15
  31. #define Z_STEP_PIN 16 // A2
  32. #define Z_DIR_PIN 11 // A6
  33. #define Z_ENABLE_PIN 3 // A1
  34. #define Z_MIN_PIN 18
  35. #define Z_MAX_PIN 19
  36. #define E0_STEP_PIN 28
  37. #define E0_DIR_PIN 27
  38. #define E0_ENABLE_PIN 29
  39. #define E1_STEP_PIN 25
  40. #define E1_DIR_PIN 24
  41. #define E1_ENABLE_PIN 26
  42. #define E2_STEP_PIN 22
  43. #define E2_DIR_PIN 60
  44. #define E2_ENABLE_PIN 23
  45. #define SDPOWER -1
  46. #define SDSS 53
  47. #define LED_PIN 13
  48. #define PS_ON_PIN 12
  49. #define KILL_PIN -1
  50. #define HEATER_0_PIN 2
  51. #define HEATER_1_PIN 9
  52. #define HEATER_2_PIN 8
  53. #define HEATER_BED_PIN 10
  54. #define FAN_PIN 6
  55. #define FAN2_PIN 7
  56. #define TEMP_0_PIN (TEMP_SENSOR_0 == -1 ? 11 : 15) // ANALOG NUMBERING
  57. #define TEMP_1_PIN (TEMP_SENSOR_1 == -1 ? 10 : 13) // ANALOG NUMBERING
  58. #define TEMP_2_PIN (TEMP_SENSOR_2 == -1 ? 9 : 12) // ANALOG NUMBERING
  59. #define TEMP_BED_PIN (TEMP_SENSOR_BED == -1 ? 8 : 14) // ANALOG NUMBERING
  60. #define BEEPER 61
  61. #define LCD_PINS_RS 32
  62. #define LCD_PINS_ENABLE 31
  63. #define LCD_PINS_D4 14
  64. #define LCD_PINS_D5 30
  65. #define LCD_PINS_D6 39
  66. #define LCD_PINS_D7 15
  67. #define SHIFT_CLK 43
  68. #define SHIFT_LD 35
  69. #define SHIFT_OUT 34
  70. #define SHIFT_EN 44
  71. // Buttons are directly attached using keypad
  72. #define BTN_EN1 44
  73. #define BTN_EN2 45
  74. #define BTN_ENC 33 // the click
  75. #define BLEN_C 2
  76. #define BLEN_B 1
  77. #define BLEN_A 0
  78. #define SDCARDDETECT -1 // Megatronics does not use this port
  79. // Encoder rotation values
  80. #define encrot0 0
  81. #define encrot1 2
  82. #define encrot2 3
  83. #define encrot3 1