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_V24S1_301.h 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2022 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 V24S1_301 (STM32F103RE / STM32F103RC) board pin assignments as found on Ender 3 S1.
  25. * Also supports the STM32F4 version of the board with identical pin mapping.
  26. */
  27. #include "env_validate.h"
  28. #if HAS_MULTI_HOTEND || E_STEPPERS > 1
  29. #error "Creality V24S1 only supports one hotend / E-stepper. Comment out this line to continue."
  30. #endif
  31. #if BOTH(BLTOUCH, Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
  32. #error "Disable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN when using BLTOUCH with Creality V24S1-301."
  33. #endif
  34. #ifndef BOARD_INFO_NAME
  35. #define BOARD_INFO_NAME "Creality V24S1-301"
  36. #endif
  37. #ifndef DEFAULT_MACHINE_NAME
  38. #define DEFAULT_MACHINE_NAME "Ender 3 S1"
  39. #endif
  40. //
  41. // Servos
  42. //
  43. #if !defined(SERVO0_PIN) && !defined(HAS_PIN_27_BOARD)
  44. #define SERVO0_PIN PC13 // BLTouch OUT
  45. #endif
  46. //
  47. // Limit Switches
  48. //
  49. #define Z_STOP_PIN PA15
  50. #ifndef Z_MIN_PROBE_PIN
  51. #define Z_MIN_PROBE_PIN PC14 // BLTouch IN
  52. #endif
  53. //
  54. // Filament Runout Sensor
  55. //
  56. #ifndef FIL_RUNOUT_PIN
  57. #define FIL_RUNOUT_PIN PC15 // "Pulled-high"
  58. #endif
  59. //
  60. // Heaters / Fans
  61. //
  62. #define HEATER_BED_PIN PA7 // HOT BED
  63. #define FAN1_PIN PC0 // extruder fan
  64. //
  65. // SD Card
  66. //
  67. #define ONBOARD_SPI_DEVICE 1
  68. #define ONBOARD_SD_CS_PIN PA4 // SDSS
  69. //
  70. // M3/M4/M5 - Spindle/Laser Control
  71. //
  72. #if HAS_CUTTER
  73. //#define HEATER_0_PIN -1
  74. //#define HEATER_BED_PIN -1
  75. #define FAN_PIN -1
  76. #define SPINDLE_LASER_ENA_PIN PC0 // FET 1
  77. #define SPINDLE_LASER_PWM_PIN PC0 // Bed FET
  78. #define SPINDLE_DIR_PIN PC0 // FET 4
  79. #define LASER_SOFT_PWM_PIN PC0
  80. #endif
  81. #include "pins_CREALITY_V4.h"