My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pins_SAV_MKI.h 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /**
  2. * SAV MkI 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. * RepRap Clone Wars project board.
  6. */
  7. #ifndef __AVR_AT90USB1286__
  8. #error Oops! Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
  9. #endif
  10. #define AT90USB 1286 // Disable MarlinSerial etc.
  11. #define LARGE_FLASH true
  12. #define X_STEP_PIN 0
  13. #define X_DIR_PIN 1
  14. #define X_ENABLE_PIN 39
  15. #define Y_STEP_PIN 2
  16. #define Y_DIR_PIN 3
  17. #define Y_ENABLE_PIN 38
  18. #define Z_STEP_PIN 4
  19. #define Z_DIR_PIN 5
  20. #define Z_ENABLE_PIN 23
  21. #define E0_STEP_PIN 6
  22. #define E0_DIR_PIN 7
  23. #define E0_ENABLE_PIN 19
  24. #define HEATER_0_PIN 21 // Extruder
  25. #define HEATER_1_PIN -1
  26. #define HEATER_2_PIN -1
  27. #define HEATER_BED_PIN 20 // Bed
  28. #define FAN_PIN 16 // Fan -- from Teensyduino environment.
  29. // For the fan and Teensyduino uses a different pin mapping.
  30. #define X_STOP_PIN 13
  31. #define Y_STOP_PIN 14
  32. //#define Z_STOP_PIN 15
  33. #define Z_STOP_PIN 36 // For inductive sensor.
  34. #define TEMP_0_PIN 7 // Extruder / Analog pin numbering
  35. #define TEMP_BED_PIN 6 // Bed / Analog pin numbering
  36. #define TEMP_1_PIN -1
  37. #define TEMP_2_PIN -1
  38. #ifndef SDSUPPORT
  39. // these pins are defined in the SD library if building with SD support
  40. #define SCK_PIN 9
  41. #define MISO_PIN 11
  42. #define MOSI_PIN 10
  43. #endif
  44. #define SDSS 20 // PB0 - 8 in marlin env.
  45. // Extension header pin mapping
  46. // ----------------------------
  47. // SCL (I2C)-D0 A0 (An), IO
  48. // SDA (I2C)-D1 A1 (An), IO
  49. // RX1-D2 A2 (An), IO
  50. // TX1-D3 A3 (An), IO
  51. // PWM-D24 A4 (An), IO
  52. // 5V GND
  53. // 12V GND
  54. #define EXT_AUX_SCL_D0 0 // 0 (teensy), 24 (marlin)
  55. #define EXT_AUX_SDA_D1 1 // 1 (teensy), 25 (marlin)
  56. #define EXT_AUX_RX1_D2 26 // 2 (teensy), 26 (marlin)
  57. #define EXT_AUX_TX1_D3 27 // 3 (teensy), 27 (marlin)
  58. #define EXT_AUX_PWM_D24 12 // 24 (teensy), 12 (marlin)
  59. #define EXT_AUX_A0 0 // Analog
  60. #define EXT_AUX_A0_IO 40 // Digital IO, 38 (teensy), 40 (marlin)
  61. #define EXT_AUX_A1 1 // Analog
  62. #define EXT_AUX_A1_IO 41 // Digital IO, 39 (teensy), 41 (marlin)
  63. #define EXT_AUX_A2 2 // Analog
  64. #define EXT_AUX_A2_IO 42 // Digital IO, 40 (teensy), 42 (marlin)
  65. #define EXT_AUX_A3 3 // Analog
  66. #define EXT_AUX_A3_IO 43 // Digital IO, 41 (teensy), 43 (marlin)
  67. #define EXT_AUX_A4 4 // Analog
  68. #define EXT_AUX_A4_IO 44 // Digital IO, 42 (teensy), 44 (marlin)
  69. #define SDPOWER -1
  70. #define LED_PIN -1
  71. #define PS_ON_PIN -1
  72. #define ALARM_PIN -1
  73. #define SDCARDDETECT -1
  74. #define BEEPER -1
  75. #define LCD_PINS_RS -1
  76. #define LCD_PINS_ENABLE -1
  77. #define LCD_PINS_D4 -1
  78. #define LCD_PINS_D5 -1
  79. #define LCD_PINS_D6 -1
  80. #define LCD_PINS_D7 -1
  81. #ifdef SAV_3DLCD
  82. // For LCD SHIFT register LCD
  83. #define SR_DATA_PIN EXT_AUX_SDA_D1
  84. #define SR_CLK_PIN EXT_AUX_SCL_D0
  85. #endif // SAV_3DLCD
  86. #if defined(SAV_3DLCD)||defined(SAV_3DGLCD)
  87. #define BTN_EN1 EXT_AUX_A1_IO
  88. #define BTN_EN2 EXT_AUX_A0_IO
  89. #define BTN_ENC EXT_AUX_PWM_D24
  90. #define KILL_PIN EXT_AUX_A2_IO
  91. #define HOME_PIN EXT_AUX_A4_IO
  92. #endif // SAV_3DLCD || SAV_3DGLCD
  93. #ifdef NUM_SERVOS
  94. #define SERVO0_PIN 41 // In teensy's pin definition for pinMode (in servo.cpp)
  95. #endif