My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_TEENSY35_36.h 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /****************************************************************************************
  24. * Teensy 3.5 (MK64FX512) and Teensy 3.6 (MK66FX1M0) Breadboard pin assignments
  25. * Requires the Teensyduino software with Teensy 3.5 or Teensy 3.6 selected in Arduino IDE!
  26. * https://www.pjrc.com/teensy/teensyduino.html
  27. ****************************************************************************************/
  28. #if NOT_TARGET(IS_TEENSY_35_36)
  29. #error "Oops! Select 'Teensy 3.5' or 'Teensy 3.6' in 'Tools > Board.'"
  30. #endif
  31. #if IS_TEENSY35
  32. #define BOARD_INFO_NAME "Teensy3.5"
  33. #elif IS_TEENSY36
  34. #define BOARD_INFO_NAME "Teensy3.6"
  35. #endif
  36. /**
  37. * Plan for Teensy 3.5 and Teensy 3.6:
  38. * USB
  39. * GND |-----#####-----| VIN 5V
  40. * X_STEP_PIN MOSI1 RX1 0 | ##### | Analog GND
  41. * X_DIR_PIN MISO1 TX1 1 | | 3.3V
  42. * Y_STEP_PIN PWM 2 | *NC AREF* | 23 A9 PWM
  43. * Y_DIR_PIN SCL2 CAN0TX PWM 3 | *A26 A10* | 22 A8 PWM
  44. * Z_STEP_PIN SDA2 CAN0RX PWM 4 | *A25 A11* | 21 A7 PWM CS0 MOSI1 RX1
  45. * Z_DIR_PIN MISO1 TX1 PWM 5 | *GND * * 57 | 20 A6 PWM CS0 SCK1 FILWIDTH_PIN
  46. * X_ENABLE_PIN PWM 6 | *GND * * 56 | 19 A5 SCL0 E0_STEP_PIN
  47. * Y_ENABLE_PIN SCL0 MOSI0 RX3 PWM 7 | * * 55 | 18 A4 SDA0 E0_DIR_PIN
  48. * Z_ENABLE_PIN SDA0 MISO0 TX3 PWM 8 | * * 54 | 17 A3 SDA0 E0_ENABLE_PIN
  49. * CS0 RX2 PWM 9 | | 16 A2 SCL0 TEMP_0_PIN
  50. * CS0 TX2 PWM 10 | | 15 A1 CS0 TEMP_BED_PIN
  51. * X_STOP_PIN MOSI0 11 | | 14 A0 PWM CS0 TEMP_1_PIN
  52. * Y_STOP_PIN MISO0 12 | | 13 LED SCK0 LED_PIN
  53. * 3.3V | | GND
  54. * Z_STOP_PIN 24 | 40 * * 53 | A22 DAC1
  55. * AUX2 25 | 41 * * 52 | A21 DAC0
  56. * AUX2 FAN_PIN SCL2 TX1 26 | 42 * * 51 | 39 A20 MISO0 SDSS
  57. * AUX2 Z-PROBE PWR SCK0 RX1 27 | * * * * * | 38 A19 PWM SDA1
  58. * AUX2 SOL1_PIN MOSI0 28 | 43 * * 50 | 37 A18 PWM SCL1
  59. * D10 CONTROLLER_FAN_PIN CAN0TX PWM 29 | 44 * * 49 | 36 A17 PWM
  60. * D9 HEATER_0_PIN CAN0RX PWM 30 | 45 * * 48 | 35 A16 PWM E1_ENABLE_PIN
  61. * D8 HEATER_BED_PIN CS1 RX4 A12 31 | 46 * * 47 | 34 A15 PWM SDA0 RX5 E1_DIR_PIN
  62. * SCK1 TX4 A13 32 |__GND_*_*_3.3V_| 33 A14 PWM SCL0 TX5 E1_STEP_PIN
  63. *
  64. * Interior pins:
  65. * LCD_PINS_RS 40 * * 53 SCK2
  66. * LCD_PINS_ENABLE 41 * * 52 MOSI2
  67. * LCD_PINS_D4 42 * * 51 MISO2
  68. * LCD_PINS_D5 CS2 43 * * 50 A24
  69. * LCD_PINS_D6 MOSI2 44 * * 49 A23
  70. * LCD_PINS_D7 MISO2 45 * * 48 TX6 SDA0 BTN_ENC
  71. * BTN_EN1 SCK2 46 * * 47 RX6 SCL0 BTN_EN2
  72. * GND * * 3.3V
  73. */
  74. //
  75. // Limit Switches
  76. //
  77. #define X_STOP_PIN 24
  78. #define Y_STOP_PIN 26
  79. #define Z_STOP_PIN 28
  80. //
  81. // Steppers
  82. //
  83. #define X_STEP_PIN 22
  84. #define X_DIR_PIN 21
  85. #define X_ENABLE_PIN 39
  86. #define Y_STEP_PIN 19
  87. #define Y_DIR_PIN 18
  88. #define Y_ENABLE_PIN 20
  89. #define Z_STEP_PIN 38
  90. #define Z_DIR_PIN 37
  91. #define Z_ENABLE_PIN 17
  92. #define E0_STEP_PIN 31
  93. #define E0_DIR_PIN 30
  94. #define E0_ENABLE_PIN 32
  95. #define E1_STEP_PIN 33
  96. #define E1_DIR_PIN 34
  97. #define E1_ENABLE_PIN 35
  98. #define HEATER_0_PIN 30
  99. #define HEATER_1_PIN 36
  100. #define HEATER_BED_PIN 31
  101. #ifndef FAN_PIN
  102. #define FAN_PIN 2
  103. #endif
  104. #define TEMP_0_PIN 2 // Extruder / Analog pin numbering: 2 => A2
  105. #define TEMP_1_PIN 0
  106. #define TEMP_BED_PIN 1 // Bed / Analog pin numbering
  107. //
  108. // Misc. Functions
  109. //
  110. #define LED_PIN 13
  111. #define PS_ON_PIN 1
  112. #define FILWIDTH_PIN 6
  113. #define SOL1_PIN 28
  114. //
  115. // SD Card
  116. //
  117. #define SDSS 39 // 8
  118. #if HAS_WIRED_LCD
  119. #define LCD_PINS_RS 40
  120. #define LCD_PINS_ENABLE 41
  121. #define LCD_PINS_D4 42
  122. #define LCD_PINS_D5 43
  123. #define LCD_PINS_D6 44
  124. #define LCD_PINS_D7 45
  125. #endif
  126. #if ENABLED(NEWPANEL)
  127. #define BTN_EN1 46
  128. #define BTN_EN2 47
  129. #define BTN_ENC 48
  130. #endif
  131. #if ENABLED(REPRAPWORLD_KEYPAD)
  132. #define SHIFT_OUT 40
  133. #define SHIFT_CLK 44
  134. #define SHIFT_LD 42
  135. #endif