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_TEENSY35_36.h 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /****************************************************************************************
  2. * Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0) Breadboard pin assignments
  3. * Requires the Teensyduino software with Teensy 3.5 or Teensy 3.6 selected in Arduino IDE!
  4. * http://www.pjrc.com/teensy/teensyduino.html
  5. *
  6. ****************************************************************************************/
  7. #if MOTHERBOARD == 841 // BOARD_TEENSY35_36
  8. #define KNOWN_BOARD 1
  9. #define AT90USB 1286 // Disable MarlinSerial etc.
  10. #if !IS_32BIT_TEENSY
  11. #error Oops! Make sure you have 'Teensy 3.5' or 'Teensy 3.6' selected from the 'Tools -> Boards' menu.
  12. #endif
  13. #if IS_TEENSY35
  14. #define BOARD_NAME "Teensy3.5"
  15. #elif IS_TEENSY36
  16. #define BOARD_NAME "Teensy3.6"
  17. #endif
  18. #define LARGE_FLASH true
  19. #define USBCON //1286 // Disable MarlinSerial etc.
  20. /*
  21. teemuatlut plan for Teensy3.5 and Teensy3.6:
  22. USB
  23. GND |-----#####-----| VIN 5V
  24. X_STEP_PIN MOSI1 RX1 0 | ##### | Analog GND
  25. X_DIR_PIN MISO1 TX1 1 | | 3.3V
  26. Y_STEP_PIN PWM 2 | *NC AREF* | 23 A9 PWM
  27. Y_DIR_PIN SCL2 CAN0TX PWM 3 | *A26 A10* | 22 A8 PWM
  28. Z_STEP_PIN SDA2 CAN0RX PWM 4 | *A25 A11* | 21 A7 PWM CS0 MOSI1 RX1
  29. Z_DIR_PIN MISO1 TX1 PWM 5 | *GND * * 57 | 20 A6 PWM CS0 SCK1 FILWIDTH_PIN
  30. X_ENABLE_PIN PWM 6 | *GND * * 56 | 19 A5 SCL0 E0_STEP_PIN
  31. Y_ENABLE_PIN SCL0 MOSI0 RX3 PWM 7 | * * 55 | 18 A4 SDA0 E0_DIR_PIN
  32. Z_ENABLE_PIN SDA0 MISO0 TX3 PWM 8 | * * 54 | 17 A3 SDA0 E0_ENABLE_PIN
  33. CS0 RX2 PWM 9 | | 16 A2 SCL0 TEMP_0_PIN
  34. CS0 TX2 PWM 10 | | 15 A1 CS0 TEMP_BED_PIN
  35. X_STOP_PIN MOSI0 11 | | 14 A0 PWM CS0 TEMP_1_PIN
  36. Y_STOP_PIN MISO0 12 | | 13 LED SCK0 LED_PIN
  37. 3.3V | | GND
  38. Z_STOP_PIN 24 | 40 * * 53 | A22 DAC1
  39. AUX2 25 | 41 * * 52 | A21 DAC0
  40. AUX2 FAN_PIN SCL2 TX1 26 | 42 * * 51 | 39 A20 MISO0 SDSS
  41. AUX2 Z-PROBE PWR SCK0 RX1 27 | * * * * * | 38 A19 PWM SDA1
  42. AUX2 SOL1_PIN MOSI0 28 | 43 * * 50 | 37 A18 PWM SCL1
  43. D10 CONTROLLERFAN_PIN CAN0TX PWM 29 | 44 * * 49 | 36 A17 PWM
  44. D9 HEATER_0_PIN CAN0RX PWM 30 | 45 * * 48 | 35 A16 PWM E1_ENABLE_PIN
  45. D8 HEATER_BED_PIN CS1 RX4 A12 31 | 46 * * 47 | 34 A15 PWM SDA0 RX5 E1_DIR_PIN
  46. SCK1 TX4 A13 32 |__GND_*_*_3.3V_| 33 A14 PWM SCL0 TX5 E1_STEP_PIN
  47. Interior pins:
  48. LCD_PINS_RS 40 * * 53 SCK2
  49. LCD_PINS_ENABLE 41 * * 52 MOSI2
  50. LCD_PINS_D4 42 * * 51 MISO2
  51. LCD_PINS_D5 CS2 43 * * 50 A24
  52. LCD_PINS_D6 MOSI2 44 * * 49 A23
  53. LCD_PINS_D7 MISO2 45 * * 48 TX6 SDA0 BTN_ENC
  54. BTN_EN1 SCK2 46 * * 47 RX6 SCL0 BTN_EN2
  55. GND * * 3.3V
  56. */
  57. #define X_STEP_PIN 22
  58. #define X_DIR_PIN 21
  59. #define X_ENABLE_PIN 39
  60. #define Y_STEP_PIN 19
  61. #define Y_DIR_PIN 18
  62. #define Y_ENABLE_PIN 20
  63. #define Z_STEP_PIN 38
  64. #define Z_DIR_PIN 37
  65. #define Z_ENABLE_PIN 17
  66. #define E0_STEP_PIN 31
  67. #define E0_DIR_PIN 30
  68. #define E0_ENABLE_PIN 32
  69. #define E1_STEP_PIN 33
  70. #define E1_DIR_PIN 34
  71. #define E1_ENABLE_PIN 35
  72. #define HEATER_0_PIN 30
  73. #define HEATER_1_PIN 36
  74. #define HEATER_2_PIN -1
  75. #define HEATER_BED_PIN 31
  76. #define FAN_PIN 2
  77. #define X_STOP_PIN 24
  78. #define Y_STOP_PIN 26
  79. #define Z_STOP_PIN 28
  80. #define TEMP_0_PIN 2 // Extruder / Analog pin numbering: 2 => A2
  81. #define TEMP_BED_PIN 1 // Bed / Analog pin numbering
  82. #define TEMP_1_PIN 0
  83. #define TEMP_2_PIN -1
  84. #define SDPOWER -1
  85. #define SD_DETECT_PIN -1
  86. #define SDSS 39 // 8
  87. #define LED_PIN 13
  88. #define PS_ON_PIN 1
  89. #define KILL_PIN -1
  90. #define ALARM_PIN -1
  91. #define FILWIDTH_PIN 6
  92. #define SOL1_PIN 28
  93. #ifndef SDSUPPORT
  94. // these pins are defined in the SD library if building with SD support
  95. #define SCK_PIN 13
  96. #define MISO_PIN 12
  97. #define MOSI_PIN 11
  98. #endif
  99. #ifdef ULTRA_LCD
  100. #define LCD_PINS_RS 40
  101. #define LCD_PINS_ENABLE 41
  102. #define LCD_PINS_D4 42
  103. #define LCD_PINS_D5 43
  104. #define LCD_PINS_D6 44
  105. #define LCD_PINS_D7 45
  106. #define BTN_EN1 46
  107. #define BTN_EN2 47
  108. #define BTN_ENC 48
  109. #endif
  110. #endif // MOTHERBOARD == 841 (Teensy3.5 and Teensy3.6)