My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pins_PRINTRBOARD_REVF.h 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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 Rev F"
  35. #define LARGE_FLASH true
  36. //
  37. // Limit Switches
  38. //
  39. #define X_STOP_PIN 35
  40. #define Y_STOP_PIN 12
  41. #define Z_STOP_PIN 36
  42. //
  43. // Steppers
  44. //
  45. #define X_STEP_PIN 0
  46. #define X_DIR_PIN 1
  47. #define X_ENABLE_PIN 39
  48. #define Y_STEP_PIN 2
  49. #define Y_DIR_PIN 3
  50. #define Y_ENABLE_PIN 38
  51. #define Z_STEP_PIN 4
  52. #define Z_DIR_PIN 5
  53. #define Z_ENABLE_PIN 23
  54. #define E0_STEP_PIN 6
  55. #define E0_DIR_PIN 7
  56. #define E0_ENABLE_PIN 19
  57. // uncomment to enable an I2C based DAC like on the Printrboard REVF
  58. #define DAC_STEPPER_CURRENT
  59. // Number of channels available for DAC, For Printrboar REVF there are 4
  60. #define DAC_STEPPER_ORDER { 3, 2, 1, 0 }
  61. #define DAC_STEPPER_SENSE 0.11
  62. #define DAC_STEPPER_ADDRESS 0
  63. #define DAC_STEPPER_MAX 3520
  64. #define DAC_STEPPER_VREF 1 // internal Vref, gain 1x = 2.048V
  65. #define DAC_STEPPER_GAIN 0
  66. #define DAC_OR_ADDRESS 0x00
  67. //
  68. // Temperature Sensors
  69. //
  70. #define TEMP_0_PIN 1 // Analog Input (Extruder)
  71. #define TEMP_BED_PIN 0 // Analog Input (Bed)
  72. //
  73. // Heaters / Fans
  74. //
  75. #define HEATER_0_PIN 21 // Extruder
  76. #define HEATER_1_PIN 46
  77. #define HEATER_2_PIN 47
  78. #define HEATER_BED_PIN 20
  79. // If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
  80. // fastio pin numbering otherwise
  81. #if ENABLED(FAN_SOFT_PWM) || ENABLED(FAST_PWM_FAN)
  82. #define FAN_PIN 22
  83. #else
  84. #define FAN_PIN 16
  85. #endif
  86. //
  87. // Misc. Functions
  88. //
  89. #define SDSS 20 // Teensylu pin mapping
  90. #define FILWIDTH_PIN 2 // Analog Input
  91. //
  92. // LCD / Controller
  93. //
  94. #if ENABLED(ULTRA_LCD)
  95. #define BEEPER_PIN -1
  96. #define LCD_PINS_RS 9
  97. #define LCD_PINS_ENABLE 8
  98. #define LCD_PINS_D4 7
  99. #define LCD_PINS_D5 6
  100. #define LCD_PINS_D6 5
  101. #define LCD_PINS_D7 4
  102. #define BTN_EN1 16
  103. #define BTN_EN2 17
  104. #define BTN_ENC 18 // the click
  105. #define SD_DETECT_PIN -1
  106. // encoder rotation values
  107. #define encrot0 0
  108. #define encrot1 2
  109. #define encrot2 3
  110. #define encrot3 1
  111. #endif
  112. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  113. #define BEEPER_PIN 32 // FastIO
  114. #define DOGLCD_A0 42 // Non-FastIO
  115. #define DOGLCD_CS 43 // Non-FastIO
  116. #define LCD_SCREEN_ROT_180
  117. // (FastIO Pins)
  118. #define BTN_EN1 26
  119. #define BTN_EN2 27
  120. #define BTN_ENC 47
  121. #define SDSS 45
  122. #define SD_DETECT_PIN -1 // FastIO (Manual says 72)
  123. #define STAT_LED_RED_PIN 12 // Non-FastIO
  124. #define STAT_LED_BLUE_PIN 10 // Non-FastIO
  125. #endif