My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins_TEENSYLU.h 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. * Teensylu 0.7 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 Teensylu assignments depend on traditional Marlin assignments, not AT90USBxx_TEENSYPP_ASSIGNMENTS in fastio.h"
  33. #endif
  34. #define BOARD_NAME "Teensylu"
  35. #define USBCON 1286 // Disable MarlinSerial etc.
  36. #define LARGE_FLASH true
  37. //
  38. // Limit Switches
  39. //
  40. #define X_STOP_PIN 13
  41. #define Y_STOP_PIN 14
  42. #define Z_STOP_PIN 15
  43. //
  44. // Steppers
  45. //
  46. #define X_STEP_PIN 0
  47. #define X_DIR_PIN 1
  48. #define X_ENABLE_PIN 39
  49. #define Y_STEP_PIN 2
  50. #define Y_DIR_PIN 3
  51. #define Y_ENABLE_PIN 38
  52. #define Z_STEP_PIN 4
  53. #define Z_DIR_PIN 5
  54. #define Z_ENABLE_PIN 23
  55. #define E0_STEP_PIN 6
  56. #define E0_DIR_PIN 7
  57. #define E0_ENABLE_PIN 19
  58. //
  59. // Temperature Sensors
  60. //
  61. #define TEMP_0_PIN 7 // Analog Input (Extruder)
  62. #define TEMP_BED_PIN 6 // Analog Input (Bed)
  63. //
  64. // Heaters / Fans
  65. //
  66. #define HEATER_0_PIN 21 // Extruder
  67. #define HEATER_1_PIN 46
  68. #define HEATER_2_PIN 47
  69. #define HEATER_BED_PIN 20
  70. // If soft or fast PWM is off then use Teensyduino pin numbering, Marlin
  71. // fastio pin numbering otherwise
  72. #if ENABLED(FAN_SOFT_PWM) || ENABLED(FAST_PWM_FAN)
  73. #define FAN_PIN 22
  74. #else
  75. #define FAN_PIN 16
  76. #endif
  77. //
  78. // Misc. Functions
  79. //
  80. #define SDSS 8
  81. //
  82. // LCD / Controller
  83. //
  84. #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
  85. #define BEEPER_PIN -1
  86. #if ENABLED(LCD_I2C_PANELOLU2)
  87. #define BTN_EN1 27 // RX1 - fastio.h pin mapping 27
  88. #define BTN_EN2 26 // TX1 - fastio.h pin mapping 26
  89. #define BTN_ENC 43 // A3 - fastio.h pin mapping 43
  90. #define SDSS 40 // use SD card on Panelolu2 (Teensyduino pin mapping)
  91. #endif // LCD_I2C_PANELOLU2
  92. #define SD_DETECT_PIN -1
  93. #endif // ULTRA_LCD && NEWPANEL