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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. * Teensy++ 2.0 Breadboard 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. * CLI build: DEFINES=AT90USBxx_TEENSYPP_ASSIGNMENTS HARDWARE_MOTHERBOARD=84 make
  29. *
  30. * DaveX plan for Teensylu/printrboard-type pinouts for a TeensyBreadboard:
  31. * (ref teensylu & sprinter)
  32. *
  33. * USB
  34. * GND GND |-----#####-----| +5V ATX +5SB
  35. * ATX PS_ON PWM 27 |b7 ##### b6| 26 PWM* Stepper Enable
  36. * PWM 0 |d0 b5| 25 PWM*
  37. * PWM 1 |d1 b4| 24 PWM
  38. * X_MIN 2 |d2 b3| 23 MISO_PIN
  39. * Y_MIN 3 |d3 b2| 22 MOSI_PIN
  40. * Z_MIN 4 |d4 * * b1| 21 SCK_PIN
  41. * 5 |d5 e e b0| 20 SDSS
  42. * LED 6 |d6 5 4 e7| 19
  43. * 7 |d7 e6| 18
  44. * LCD RS 8 |e0 | GND
  45. * LCD EN 9 |e1 a4 a0 R| AREF
  46. * LCD D4 10 |c0 a5 a1 f0| 38 A0 ENC_1
  47. * LCD D5 11 |c1 a6 a2 f1| 39 A1 ENC_2
  48. * LCD D6 12 |c2 a7 a3 f2| 40 A2 ENC_CLK
  49. * LCD D6 13 |c3 f3| 41 A3
  50. * Bed Heat PWM 14 |c4 V G R f4| 42 A4
  51. * Extruder Heat PWM 15 |c5 c n S f5| 43 A5
  52. * Fan PWM 16 |c6 c d T f6| 44 A6 Bed TC
  53. * 17 |c7 * * * f7| 45 A7 Extruder TC * 4.7k * +5
  54. * -----------------
  55. *
  56. * Interior E4: 36, INT4
  57. * Interior E5: 37, INT5
  58. * Interior PA0-7: 28-35 -- Printrboard and Teensylu use these pins for step & direction:
  59. * T++ PA Signal Marlin
  60. *
  61. * Z STEP 32 a4 a0 28 X STEP
  62. * Z DIR 33 a5 a1 29 X DIR
  63. * E STEP 34 a6 a2 30 Y STEP
  64. * E DIR 35 a7 a3 31 Y DIR
  65. */
  66. #ifndef __AVR_AT90USB1286__
  67. #error "Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu."
  68. #endif
  69. #ifndef AT90USBxx_TEENSYPP_ASSIGNMENTS // use Teensyduino Teensy++2.0 pin assignments instead of Marlin alphabetical.
  70. #error "Uncomment #define AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h for this config"
  71. // (or build from command line)
  72. #endif
  73. #define BOARD_NAME "Teensy++2.0"
  74. #define LARGE_FLASH true
  75. #define X_STEP_PIN 28 // 0 Marlin
  76. #define X_DIR_PIN 29 // 1 Marlin
  77. #define X_ENABLE_PIN 26
  78. #define Y_STEP_PIN 30 // 2 Marlin
  79. #define Y_DIR_PIN 31 // 3
  80. #define Y_ENABLE_PIN 26 // Shared w/x
  81. #define Z_STEP_PIN 32 // 4
  82. #define Z_DIR_PIN 33 // 5
  83. #define Z_ENABLE_PIN 26 // Shared w/x
  84. #define E0_STEP_PIN 34 // 6
  85. #define E0_DIR_PIN 35 // 7
  86. #define E0_ENABLE_PIN 26 // Shared w/x
  87. #define HEATER_0_PIN 15 // 21 // Extruder
  88. #define HEATER_BED_PIN 14 // 20 // Bed
  89. #define FAN_PIN 16 // 22 // Fan
  90. #define X_STOP_PIN 2
  91. #define Y_STOP_PIN 3
  92. #define Z_STOP_PIN 4
  93. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
  94. #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
  95. #define SDSS 20 // 8
  96. #define LED_PIN 6
  97. #define PS_ON_PIN 27
  98. #if ENABLED(ULTIPANEL)
  99. #define LCD_PINS_RS 8
  100. #define LCD_PINS_ENABLE 9
  101. #define LCD_PINS_D4 10
  102. #define LCD_PINS_D5 11
  103. #define LCD_PINS_D6 12
  104. #define LCD_PINS_D7 13
  105. #define BTN_EN1 38
  106. #define BTN_EN2 39
  107. #define BTN_ENC 40
  108. #endif