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

pins_PRINTRBOARD.h 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. * Printrboard pin assignments (AT90USB1286)
  24. * Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino IDE!
  25. * http://www.pjrc.com/teensy/teensyduino.html
  26. * See http://reprap.org/wiki/Printrboard for more info
  27. */
  28. #ifndef __AVR_AT90USB1286__
  29. #error "Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu."
  30. #endif
  31. #if ENABLED(AT90USBxx_TEENSYPP_ASSIGNMENTS) // use Teensyduino Teensy++2.0 pin assignments instead of Marlin traditional.
  32. #error "These Printrboard assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h"
  33. #endif
  34. #define BOARD_NAME "Printrboard"
  35. #define LARGE_FLASH true
  36. // Disable JTAG pins so they can be used for the Extrudrboard
  37. #define DISABLE_JTAG true
  38. #define X_STEP_PIN 0
  39. #define X_DIR_PIN 1
  40. #define X_ENABLE_PIN 39
  41. #define Y_STEP_PIN 2
  42. #define Y_DIR_PIN 3
  43. #define Y_ENABLE_PIN 38
  44. #define Z_STEP_PIN 4
  45. #define Z_DIR_PIN 5
  46. #define Z_ENABLE_PIN 23
  47. #define E0_STEP_PIN 6
  48. #define E0_DIR_PIN 7
  49. #define E0_ENABLE_PIN 19
  50. #define HEATER_0_PIN 21 // Extruder
  51. #define HEATER_1_PIN 46
  52. #define HEATER_2_PIN 47
  53. #define HEATER_BED_PIN 20
  54. // If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
  55. // fastio pin numbering otherwise
  56. #if ENABLED(FAN_SOFT_PWM) || ENABLED(FAST_PWM_FAN)
  57. #define FAN_PIN 22
  58. #else
  59. #define FAN_PIN 16
  60. #endif
  61. #define X_STOP_PIN 35
  62. #if ENABLED(SDSUPPORT)
  63. #define Y_STOP_PIN 37 // Move Ystop to Estop socket
  64. #else
  65. #define Y_STOP_PIN 8 // Ystop in Ystop socket
  66. #endif
  67. #define Z_STOP_PIN 36
  68. #define TEMP_0_PIN 1 // Extruder / Analog pin numbering
  69. #define TEMP_BED_PIN 0 // Bed / Analog pin numbering
  70. #define FILWIDTH_PIN 2 // ANALOG NUMBERING
  71. ////LCD Pin Setup////
  72. #define SDSS 26
  73. #if DISABLED(SDSUPPORT)
  74. // these pins are defined in the SD library if building with SD support
  75. #define SCK_PIN 9
  76. #define MISO_PIN 11
  77. #define MOSI_PIN 10
  78. #endif
  79. #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
  80. //we have no buzzer installed
  81. #define BEEPER_PIN -1
  82. //LCD Pins
  83. #if ENABLED(LCD_I2C_PANELOLU2)
  84. #define BTN_EN1 27 //RX1 - fastio.h pin mapping 27
  85. #define BTN_EN2 26 //TX1 - fastio.h pin mapping 26
  86. #define BTN_ENC 43 //A3 - fastio.h pin mapping 43
  87. #define SDSS 40 //use SD card on Panelolu2 (Teensyduino pin mapping)
  88. #else
  89. #define BTN_EN1 16
  90. #define BTN_EN2 17
  91. #define BTN_ENC 18//the click
  92. #endif // LCD_I2C_PANELOLU2
  93. //not connected to a pin
  94. #define SD_DETECT_PIN -1
  95. #define LCD_PINS_RS 9
  96. #define LCD_PINS_ENABLE 8
  97. #define LCD_PINS_D4 7
  98. #define LCD_PINS_D5 6
  99. #define LCD_PINS_D6 5
  100. #define LCD_PINS_D7 4
  101. #endif // ULTRA_LCD && NEWPANEL
  102. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  103. //FastIO
  104. #define BEEPER_PIN 32
  105. // Pins for DOGM SPI LCD Support
  106. #define DOGLCD_A0 42 //Non-FastIO
  107. #define DOGLCD_CS 43 //Non-FastIO
  108. #define LCD_SCREEN_ROT_180
  109. //The encoder and click button (FastIO Pins)
  110. #define BTN_EN1 26
  111. #define BTN_EN2 27
  112. #define BTN_ENC 47 //the click switch
  113. #define SDSS 45
  114. #define SD_DETECT_PIN -1 // FastIO (Manual says 72 I'm not certain cause I can't test)
  115. #if ENABLED(TEMP_STAT_LEDS)
  116. #define STAT_LED_RED 12 //Non-FastIO
  117. #define STAT_LED_BLUE 10 //Non-FastIO
  118. #endif
  119. #endif