My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pins_TEENSY2.h 4.3KB

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