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_BAM_DICE_DUE.h 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /**
  2. * Arduino Mega with BAM&DICE DUE pin assignments
  3. *
  4. * Applies to the following boards:
  5. *
  6. * BAM&DICE Due with Arduino Mega
  7. */
  8. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  9. #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
  10. #endif
  11. #define LARGE_FLASH true
  12. #define X_STEP_PIN 54
  13. #define X_DIR_PIN 55
  14. #define X_ENABLE_PIN 38
  15. #define X_MIN_PIN 3
  16. #define X_MAX_PIN 2
  17. #define Y_STEP_PIN 60
  18. #define Y_DIR_PIN 61
  19. #define Y_ENABLE_PIN 56
  20. #define Y_MIN_PIN 14
  21. #define Y_MAX_PIN 15
  22. #define Z_STEP_PIN 46
  23. #define Z_DIR_PIN 48
  24. #define Z_ENABLE_PIN 62
  25. #define Z_MIN_PIN 18
  26. #define Z_MAX_PIN 19
  27. #define Y2_STEP_PIN 36
  28. #define Y2_DIR_PIN 34
  29. #define Y2_ENABLE_PIN 30
  30. #define Z2_STEP_PIN 36
  31. #define Z2_DIR_PIN 34
  32. #define Z2_ENABLE_PIN 30
  33. #define E0_STEP_PIN 26
  34. #define E0_DIR_PIN 28
  35. #define E0_ENABLE_PIN 24
  36. #define E1_STEP_PIN 36
  37. #define E1_DIR_PIN 34
  38. #define E1_ENABLE_PIN 30
  39. #define SDPOWER -1
  40. #define SDSS 53
  41. #define LED_PIN 13
  42. #define FAN_PIN 9 // (Sprinter config)
  43. #define PS_ON_PIN 12
  44. #if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
  45. #define KILL_PIN 41
  46. #else
  47. #define KILL_PIN -1
  48. #endif
  49. #define HEATER_0_PIN 10
  50. #define HEATER_1_PIN -1
  51. #define HEATER_2_PIN -1
  52. #define TEMP_0_PIN 9 // ANALOG NUMBERING
  53. #define TEMP_1_PIN 11 // ANALOG NUMBERING
  54. #define TEMP_2_PIN -1 // ANALOG NUMBERING
  55. #define HEATER_BED_PIN 8 // BED
  56. #define TEMP_BED_PIN 14 // ANALOG NUMBERING
  57. #ifdef NUM_SERVOS
  58. #define SERVO0_PIN 11
  59. #if NUM_SERVOS > 1
  60. #define SERVO1_PIN 6
  61. #endif
  62. #if NUM_SERVOS > 2
  63. #define SERVO2_PIN 5
  64. #endif
  65. #if NUM_SERVOS > 3
  66. #define SERVO3_PIN 4
  67. #endif
  68. #endif
  69. #ifdef ULTRA_LCD
  70. #ifdef NEWPANEL
  71. #define LCD_PINS_RS 16
  72. #define LCD_PINS_ENABLE 17
  73. #define LCD_PINS_D4 23
  74. #define LCD_PINS_D5 25
  75. #define LCD_PINS_D6 27
  76. #define LCD_PINS_D7 29
  77. #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
  78. #define BEEPER 37
  79. #define BTN_EN1 31
  80. #define BTN_EN2 33
  81. #define BTN_ENC 35
  82. #define SDCARDDETECT 49
  83. #elif defined(LCD_I2C_PANELOLU2)
  84. #define BTN_EN1 47 // reverse if the encoder turns the wrong way.
  85. #define BTN_EN2 43
  86. #define BTN_ENC 32
  87. #define LCD_SDSS 53
  88. #define SDCARDDETECT -1
  89. #define KILL_PIN 41
  90. #elif defined(LCD_I2C_VIKI)
  91. #define BTN_EN1 22 // reverse if the encoder turns the wrong way.
  92. #define BTN_EN2 7
  93. #define BTN_ENC -1
  94. #define LCD_SDSS 53
  95. #define SDCARDDETECT 49
  96. #else
  97. // arduino pin which triggers an piezzo beeper
  98. #define BEEPER 33 // Beeper on AUX-4
  99. // buttons are directly attached using AUX-2
  100. #ifdef REPRAPWORLD_KEYPAD
  101. #define BTN_EN1 64 // encoder
  102. #define BTN_EN2 59 // encoder
  103. #define BTN_ENC 63 // enter button
  104. #define SHIFT_OUT 40 // shift register
  105. #define SHIFT_CLK 44 // shift register
  106. #define SHIFT_LD 42 // shift register
  107. #else
  108. #define BTN_EN1 37
  109. #define BTN_EN2 35
  110. #define BTN_ENC 31 // the click
  111. #endif
  112. #ifdef G3D_PANEL
  113. #define SDCARDDETECT 49
  114. #else
  115. #define SDCARDDETECT -1 // Ramps does not use this port
  116. #endif
  117. #endif
  118. #else // Old-style panel with shift register
  119. // Arduino pin witch triggers an piezzo beeper
  120. #define BEEPER 33 // No Beeper added
  121. // Buttons are attached to a shift register
  122. // Not wired yet
  123. // #define SHIFT_CLK 38
  124. // #define SHIFT_LD 42
  125. // #define SHIFT_OUT 40
  126. // #define SHIFT_EN 17
  127. #define LCD_PINS_RS 16
  128. #define LCD_PINS_ENABLE 17
  129. #define LCD_PINS_D4 23
  130. #define LCD_PINS_D5 25
  131. #define LCD_PINS_D6 27
  132. #define LCD_PINS_D7 29
  133. #endif
  134. #endif // ULTRA_LCD
  135. // SPI for Max6675 Thermocouple
  136. #ifndef SDSUPPORT
  137. #define MAX6675_SS 66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
  138. #else
  139. #define MAX6675_SS 66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
  140. #endif
  141. #ifndef SDSUPPORT
  142. // these pins are defined in the SD library if building with SD support
  143. #define SCK_PIN 52
  144. #define MISO_PIN 50
  145. #define MOSI_PIN 51
  146. #endif