My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_CREALITY_V45x.h 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 // 2K (24C16)
  44. #elif ENABLED(SDCARD_EEPROM_EMULATION)
  45. #define MARLIN_EEPROM_SIZE 0x800 // 2K
  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. #ifndef PROBE_TARE_PIN
  58. #define PROBE_TARE_PIN PA5
  59. #endif
  60. //
  61. // Steppers
  62. //
  63. #define X_ENABLE_PIN PC3
  64. #define X_STEP_PIN PB8
  65. #define X_DIR_PIN PB7
  66. #define Y_ENABLE_PIN PC3
  67. #define Y_STEP_PIN PB6
  68. #define Y_DIR_PIN PB5
  69. #define Z_ENABLE_PIN PC3
  70. #define Z_STEP_PIN PB4
  71. #define Z_DIR_PIN PB3
  72. #define E0_ENABLE_PIN PC3
  73. #define E0_STEP_PIN PC2
  74. #define E0_DIR_PIN PB9
  75. //
  76. // Temperature Sensors
  77. //
  78. #define TEMP_0_PIN PB1 // TH1
  79. #define TEMP_BED_PIN PB0 // TB1
  80. //
  81. // Heaters / Fans
  82. //
  83. #define FAN_SOFT_PWM_REQUIRED
  84. //
  85. // SD Card
  86. //
  87. #define SD_DETECT_PIN PC7
  88. #define NO_SD_HOST_DRIVE // SD is only seen by the printer
  89. #define SDIO_SUPPORT // Extra added by Creality
  90. #define SDIO_CLOCK 6000000 // In original source code overridden by Creality in sdio.h
  91. //
  92. // Misc. Functions
  93. //
  94. #define CASE_LIGHT_PIN PA6