My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pins_LERDGE_X.h 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. #define ALLOW_STM32DUINO
  24. #include "env_validate.h"
  25. #if HAS_MULTI_HOTEND || E_STEPPERS > 1
  26. #error "LERDGE X only supports 1 hotend / E stepper."
  27. #endif
  28. #define BOARD_INFO_NAME "Lerdge X"
  29. #define DEFAULT_MACHINE_NAME "LERDGE"
  30. #define STEP_TIMER 4
  31. #define TEMP_TIMER 2
  32. #define I2C_EEPROM
  33. #define I2C_SCL_PIN PB8
  34. #define I2C_SDA_PIN PB9
  35. #define MARLIN_EEPROM_SIZE 0x10000 // FM24CL64 F-RAM 64K (8Kx8)
  36. #define HAS_OTG_USB_HOST_SUPPORT // USB Flash Drive support
  37. //
  38. // Servos
  39. //
  40. //#define SERVO0_PIN PD13
  41. //
  42. // Limit Switches
  43. //
  44. #define X_STOP_PIN PB12
  45. #define Y_STOP_PIN PB13
  46. #define Z_STOP_PIN PB14
  47. //
  48. // Filament runout
  49. //
  50. #define FIL_RUNOUT_PIN PE1
  51. //
  52. // Z Probe (when not Z_MIN_PIN)
  53. //
  54. //#ifndef Z_MIN_PROBE_PIN
  55. // #define Z_MIN_PROBE_PIN PB15
  56. //#endif
  57. //
  58. // Steppers
  59. //
  60. #define X_STEP_PIN PB10
  61. #define X_DIR_PIN PB2
  62. #define X_ENABLE_PIN PB11
  63. #define Y_STEP_PIN PB0
  64. #define Y_DIR_PIN PC5
  65. #define Y_ENABLE_PIN PB1
  66. #define Z_STEP_PIN PA7
  67. #define Z_DIR_PIN PA6
  68. #define Z_ENABLE_PIN PC4
  69. #define E0_STEP_PIN PA4
  70. #define E0_DIR_PIN PA3
  71. #define E0_ENABLE_PIN PA5
  72. //
  73. // Temperature Sensors
  74. //
  75. #define TEMP_0_PIN PC0 // Analog Input
  76. #define TEMP_1_PIN -1 // Analog Input
  77. #define TEMP_BED_PIN PC1 // Analog Input
  78. //
  79. // Heaters / Fans
  80. //
  81. #define HEATER_0_PIN PA1
  82. #define HEATER_1_PIN -1
  83. #define HEATER_BED_PIN PA2
  84. //#ifndef FAN_PIN
  85. // #define FAN_PIN PC15
  86. //#endif
  87. #define FAN1_PIN PC15
  88. #define FAN2_PIN PA0
  89. #ifndef E0_AUTO_FAN_PIN
  90. #define E0_AUTO_FAN_PIN PC15 // FAN1_PIN
  91. #endif
  92. //
  93. // LED / Lighting
  94. //
  95. //#define CASE_LIGHT_PIN_CI -1
  96. //#define CASE_LIGHT_PIN_DO -1
  97. //#define NEOPIXEL_PIN -1
  98. //
  99. // SD support (On board)
  100. //
  101. #define SDIO_SUPPORT
  102. #define SD_DETECT_PIN PA8
  103. #define SDIO_CLOCK 4800000
  104. #if DISABLED(SDIO_SUPPORT)
  105. #define SOFTWARE_SPI
  106. #define SD_SCK_PIN PC12
  107. #define SD_MISO_PIN PC8
  108. #define SD_MOSI_PIN PD2
  109. #define SD_SS_PIN PC11
  110. #define SDSS PC11
  111. #endif
  112. //
  113. // Misc. Functions
  114. //
  115. #define LED_PIN PC7 // Alive
  116. #define PS_ON_PIN -1
  117. #define KILL_PIN -1
  118. // Lerdge supports auto-power off and power loss sense through a single pin.
  119. #define POWER_LOSS_PIN PC14 // Power-loss / nAC_FAULT
  120. //
  121. // TFT with FSMC interface
  122. //
  123. #if HAS_FSMC_TFT
  124. #ifndef TFT_DRIVER
  125. #define TFT_DRIVER ST7796
  126. #endif
  127. #define ST7796S_INVERTED
  128. #define FSMC_CS_PIN PD7
  129. #define FSMC_RS_PIN PD11
  130. #define TFT_RESET_PIN PD6
  131. #define TFT_BACKLIGHT_PIN PD3
  132. #define TFT_CS_PIN FSMC_CS_PIN
  133. #define TFT_RS_PIN FSMC_RS_PIN
  134. #define TOUCH_CS_PIN PB6
  135. #define TOUCH_SCK_PIN PB3
  136. #define TOUCH_MOSI_PIN PB5
  137. #define TOUCH_MISO_PIN PB4
  138. #endif
  139. #if IS_NEWPANEL
  140. #define BEEPER_PIN PD12
  141. #define BTN_EN1 PE4
  142. #define BTN_EN2 PE3
  143. #define BTN_ENC PE2
  144. #ifndef ENCODER_STEPS_PER_MENU_ITEM
  145. #define ENCODER_STEPS_PER_MENU_ITEM 2
  146. #endif
  147. #endif