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_CREALITY_V45x.h 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. * Creality v4.5.2 and v4.5.3 (STM32F103RET6) board pin assignments
  25. */
  26. #include "env_validate.h"
  27. #define DEFAULT_MACHINE_NAME "Creality3D"
  28. //
  29. // Release PB4 (Z_STEP_PIN) from JTAG NRST role
  30. //
  31. #define DISABLE_DEBUG
  32. #define BOARD_NO_NATIVE_USB
  33. //
  34. // EEPROM
  35. //
  36. #if NO_EEPROM_SELECTED
  37. #define IIC_BL24CXX_EEPROM // EEPROM on I2C-0
  38. //#define SDCARD_EEPROM_EMULATION
  39. #endif
  40. #if ENABLED(IIC_BL24CXX_EEPROM)
  41. #define IIC_EEPROM_SDA PA11
  42. #define IIC_EEPROM_SCL PA12
  43. #define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
  44. #elif ENABLED(SDCARD_EEPROM_EMULATION)
  45. #define MARLIN_EEPROM_SIZE 0x800 // 2Kb
  46. #endif
  47. //
  48. // Limit Switches
  49. //
  50. #define X_STOP_PIN PC4
  51. #define Y_STOP_PIN PC5
  52. #define Z_STOP_PIN PA4
  53. #define FIL_RUNOUT_PIN PA7
  54. //
  55. // Probe
  56. //
  57. #define PROBE_TARE_PIN PA5
  58. //
  59. // Steppers
  60. //
  61. #define X_ENABLE_PIN PC3
  62. #define X_STEP_PIN PB8
  63. #define X_DIR_PIN PB7
  64. #define Y_ENABLE_PIN PC3
  65. #define Y_STEP_PIN PB6
  66. #define Y_DIR_PIN PB5
  67. #define Z_ENABLE_PIN PC3
  68. #define Z_STEP_PIN PB4
  69. #define Z_DIR_PIN PB3
  70. #define E0_ENABLE_PIN PC3
  71. #define E0_STEP_PIN PC2
  72. #define E0_DIR_PIN PB9
  73. //
  74. // Temperature Sensors
  75. //
  76. #define TEMP_0_PIN PB1 // TH1
  77. #define TEMP_BED_PIN PB0 // TB1
  78. //
  79. // Heaters / Fans
  80. //
  81. #define FAN_SOFT_PWM
  82. //
  83. // SD Card
  84. //
  85. #define SD_DETECT_PIN PC7
  86. #define NO_SD_HOST_DRIVE // SD is only seen by the printer
  87. #define SDIO_SUPPORT // Extra added by Creality
  88. #define SDIO_CLOCK 6000000 // In original source code overridden by Creality in sdio.h
  89. //
  90. // Misc. Functions
  91. //
  92. #define CASE_LIGHT_PIN PA6