My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_MEGATRONICS_3.h 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 // put to -1 to disable
  26. #define Y_STEP_PIN 5
  27. #define Y_DIR_PIN 17
  28. #define Y_ENABLE_PIN 4
  29. #define Y_MIN_PIN 41
  30. #define Y_MAX_PIN 38 // put to -1 to disable
  31. #define Z_STEP_PIN 16
  32. #define Z_DIR_PIN 11
  33. #define Z_ENABLE_PIN 3
  34. #define Z_MIN_PIN 18
  35. #define Z_MAX_PIN 19 // put to -1 to disable
  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