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_MELZI_CREALITY.h 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. * Melzi (Creality) pin assignments
  24. */
  25. #define BOARD_NAME "Melzi (Creality)"
  26. #ifdef __AVR_ATmega1284P__
  27. #define LARGE_FLASH true
  28. #endif
  29. // For the stock CR-10 use the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  30. // option for the display in Configuration.h
  31. #define SANGUINOLOLU_V_1_2
  32. #include "pins_SANGUINOLOLU_11.h"
  33. #undef LCD_SDSS
  34. #undef LED_PIN
  35. #undef LCD_PINS_RS
  36. #undef LCD_PINS_ENABLE
  37. #define LCD_PINS_RS 28 // st9720 CS
  38. #define LCD_PINS_ENABLE 17 // st9720 DAT
  39. #undef LCD_PINS_D4
  40. #undef LCD_PINS_D5
  41. #undef LCD_PINS_D6
  42. #undef LCD_PINS_D7
  43. #define LCD_PINS_D4 30 // st9720 CLK
  44. /**
  45. PIN: 0 Port: B0 E0_DIR_PIN protected
  46. PIN: 1 Port: B1 E0_STEP_PIN protected
  47. PIN: 2 Port: B2 Z_DIR_PIN protected
  48. PIN: 3 Port: B3 Z_STEP_PIN protected
  49. PIN: 4 Port: B4 AVR_SS_PIN protected
  50. . FAN_PIN protected
  51. . SS_PIN protected
  52. PIN: 5 Port: B5 AVR_MOSI_PIN Output = 1
  53. . MOSI_PIN Output = 1
  54. PIN: 6 Port: B6 AVR_MISO_PIN Input = 0 TIMER3A PWM: 0 WGM: 1 COM3A: 0 CS: 3 TCCR3A: 1 TCCR3B: 3 TIMSK3: 0
  55. . MISO_PIN Input = 0
  56. PIN: 7 Port: B7 AVR_SCK_PIN Output = 0 TIMER3B PWM: 0 WGM: 1 COM3B: 0 CS: 3 TCCR3A: 1 TCCR3B: 3 TIMSK3: 0
  57. . SCK_PIN Output = 0
  58. PIN: 8 Port: D0 RXD Input = 1
  59. PIN: 9 Port: D1 TXD Input = 0
  60. PIN: 10 Port: D2 BTN_EN2 Input = 1
  61. PIN: 11 Port: D3 BTN_EN1 Input = 1
  62. PIN: 12 Port: D4 HEATER_BED_PIN protected
  63. PIN: 13 Port: D5 HEATER_0_PIN protected
  64. PIN: 14 Port: D6 E0_ENABLE_PIN protected
  65. . X_ENABLE_PIN protected
  66. . Y_ENABLE_PIN protected
  67. PIN: 15 Port: D7 X_STEP_PIN protected
  68. PIN: 16 Port: C0 BTN_ENC Input = 1
  69. . SCL Input = 1
  70. PIN: 17 Port: C1 LCD_PINS_ENABLE Output = 0
  71. . SDA Output = 0
  72. PIN: 18 Port: C2 X_MIN_PIN protected
  73. . X_STOP_PIN protected
  74. PIN: 19 Port: C3 Y_MIN_PIN protected
  75. . Y_STOP_PIN protected
  76. PIN: 20 Port: C4 Z_MIN_PIN protected
  77. . Z_STOP_PIN protected
  78. PIN: 21 Port: C5 X_DIR_PIN protected
  79. PIN: 22 Port: C6 Y_STEP_PIN protected
  80. PIN: 23 Port: C7 Y_DIR_PIN protected
  81. PIN: 24 Port: A7 TEMP_0_PIN protected
  82. PIN: 25 Port: A6 TEMP_BED_PIN protected
  83. PIN: 26 Port: A5 Z_ENABLE_PIN protected
  84. PIN: 27 Port: A4 BEEPER_PIN Output = 0
  85. PIN: 28 Port: A3 LCD_PINS_RS Output = 0
  86. PIN: 29 Port: A2 <unused/unknown> Input = 0
  87. PIN: 30 Port: A1 LCD_PINS_D4 Output = 1
  88. PIN: 31 Port: A0 SDSS Output = 1
  89. */