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_RAMPS_DUO.h 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. * Arduino Mega or Due with RAMPS Duo pin assignments
  24. *
  25. * Applies to the following boards:
  26. *
  27. * RAMPS_DUO_EFB (Hotend, Fan, Bed)
  28. * RAMPS_DUO_EEB (Hotend0, Hotend1, Bed)
  29. * RAMPS_DUO_EFF (Hotend, Fan0, Fan1)
  30. * RAMPS_DUO_EEF (Hotend0, Hotend1, Fan)
  31. * RAMPS_DUO_SF (Spindle, Controller Fan)
  32. *
  33. * Differences between
  34. * RAMPS_14 | RAMPS_DUO
  35. * A9/D63 | A12/D66
  36. * A10/D64 | A13/D67
  37. * A11/D65 | A14/D68
  38. * A12/D66 | A15/D69
  39. * A13 | A9
  40. * A14 | A10
  41. * A15 | A11
  42. */
  43. #if !defined(__SAM3X8E__) && !defined(__AVR_ATmega2560__)
  44. #error "Oops! Make sure you have 'Arduino Due' or 'Arduino Mega' selected from the 'Tools -> Boards' menu."
  45. #endif
  46. #ifndef BOARD_NAME
  47. #define BOARD_NAME "RAMPS Duo"
  48. #endif
  49. #define IS_RAMPS_DUO
  50. #include "pins_RAMPS.h"
  51. //
  52. // Temperature Sensors
  53. //
  54. #undef TEMP_0_PIN
  55. #define TEMP_0_PIN 9 // Analog Input
  56. #undef TEMP_1_PIN
  57. #define TEMP_1_PIN 11 // Analog Input
  58. #undef TEMP_BED_PIN
  59. #define TEMP_BED_PIN 10 // Analog Input
  60. // SPI for Max6675 or Max31855 Thermocouple
  61. #undef MAX6675_SS
  62. #if DISABLED(SDSUPPORT)
  63. #define MAX6675_SS 69 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
  64. #else
  65. #define MAX6675_SS 69 // 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
  66. #endif
  67. //
  68. // LCD / Controller
  69. //
  70. #if ENABLED(ULTRA_LCD)
  71. #if ENABLED(NEWPANEL) && ENABLED(PANEL_ONE)
  72. #undef LCD_PINS_D4
  73. #define LCD_PINS_D4 68
  74. #undef LCD_PINS_D5
  75. #define LCD_PINS_D5 69
  76. #undef LCD_PINS_D7
  77. #define LCD_PINS_D7 67
  78. #endif
  79. #if ENABLED(NEWPANEL)
  80. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  81. #undef BTN_EN1
  82. #define BTN_EN1 67
  83. #undef BTN_ENC
  84. #define BTN_ENC 66
  85. #elif ENABLED(MINIPANEL)
  86. #undef DOGLCD_CS
  87. #define DOGLCD_CS 69
  88. #undef LCD_BACKLIGHT_PIN
  89. #define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68
  90. #undef KILL_PIN
  91. #define KILL_PIN 67
  92. #undef BTN_EN2
  93. #define BTN_EN2 66
  94. #else
  95. #if ENABLED(REPRAPWORLD_KEYPAD)
  96. #undef BTN_EN1
  97. #define BTN_EN1 67 // encoder
  98. #undef BTN_ENC
  99. #define BTN_ENC 66 // enter button
  100. #elif ENABLED(PANEL_ONE)
  101. #undef BTN_EN2
  102. #define BTN_EN2 66 // AUX2 PIN 4
  103. #endif
  104. #endif
  105. #endif // NEWPANEL
  106. #endif // ULTRA_LCD