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_FYSETC_CHEETAH.h 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. #ifndef __STM32F1__
  24. #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
  25. #endif
  26. #define DEFAULT_MACHINE_NAME "3D Printer"
  27. #define BOARD_INFO_NAME "FYSETC Cheetah"
  28. #define BOARD_WEBSITE_URL "fysetc.com"
  29. // Ignore temp readings during development.
  30. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  31. #define DISABLE_JTAG
  32. #define FLASH_EEPROM_EMULATION
  33. #define EEPROM_PAGE_SIZE uint16(0x800) // 2KB
  34. #define EEPROM_START_ADDRESS uint32(0x8000000 + 256 * 1024 - 2 * EEPROM_PAGE_SIZE)
  35. #undef E2END
  36. #define E2END (EEPROM_PAGE_SIZE - 1) // 2KB
  37. //
  38. // Servos
  39. //
  40. #define SERVO0_PIN PA0
  41. //
  42. // Limit Switches
  43. //
  44. #define X_STOP_PIN PA1
  45. #define Y_STOP_PIN PB4
  46. #define Z_STOP_PIN PA15
  47. //
  48. // Filament runout
  49. //
  50. #define FIL_RUNOUT_PIN PB5
  51. //
  52. // Steppers
  53. //
  54. #define X_STEP_PIN PB8
  55. #define X_DIR_PIN PB9
  56. #define X_ENABLE_PIN PA8
  57. #define Y_STEP_PIN PB2
  58. #define Y_DIR_PIN PB3
  59. #define Y_ENABLE_PIN PB1
  60. #define Z_STEP_PIN PC0
  61. #define Z_DIR_PIN PC1
  62. #define Z_ENABLE_PIN PC2
  63. #define E0_STEP_PIN PC15
  64. #define E0_DIR_PIN PC14
  65. #define E0_ENABLE_PIN PC13
  66. #define X_HARDWARE_SERIAL MSerial2
  67. #define Y_HARDWARE_SERIAL MSerial2
  68. #define Z_HARDWARE_SERIAL MSerial2
  69. #define E0_HARDWARE_SERIAL MSerial2
  70. //
  71. // Heaters / Fans
  72. //
  73. #define HEATER_0_PIN PC6
  74. #define HEATER_BED_PIN PC7
  75. #ifndef FAN_PIN
  76. #define FAN_PIN PC8
  77. #endif
  78. //
  79. // Temperature Sensors
  80. //
  81. #define TEMP_BED_PIN PC5 // Analog Input
  82. #define TEMP_0_PIN PC4 // Analog Input
  83. //
  84. // Misc. Functions
  85. //
  86. #define SDSS PA4
  87. //
  88. // LCD Pins
  89. //
  90. #if HAS_SPI_LCD
  91. #define BEEPER_PIN PC9
  92. #if HAS_GRAPHICAL_LCD
  93. #define DOGLCD_A0 PB14
  94. #define DOGLCD_CS PB12
  95. #define DOGLCD_SCK PB13
  96. #define DOGLCD_MOSI PB15
  97. //#define LCD_SCREEN_ROT_90
  98. //#define LCD_SCREEN_ROT_180
  99. //#define LCD_SCREEN_ROT_270
  100. #if EITHER(FYSETC_MINI_12864, U8GLIB_ST7920)
  101. #define FORCE_SOFT_SPI
  102. #endif
  103. #endif
  104. #define LCD_PINS_RS PB12 // CS -- SOFT SPI for ENDER3 LCD
  105. #define LCD_PINS_D4 PB13 // SCLK
  106. #define LCD_PINS_ENABLE PB15 // DATA MOSI
  107. // not connected to a pin
  108. #define SD_DETECT_PIN PC3
  109. #ifndef RGB_LED_R_PIN
  110. #define RGB_LED_R_PIN PB0
  111. #endif
  112. #ifndef RGB_LED_G_PIN
  113. #define RGB_LED_G_PIN PB7
  114. #endif
  115. #ifndef RGB_LED_B_PIN
  116. #define RGB_LED_B_PIN PB6
  117. #endif
  118. //#define LCD_CONTRAST_INIT 190
  119. #if ENABLED(NEWPANEL)
  120. #define BTN_EN1 PC11
  121. #define BTN_EN2 PC10
  122. #define BTN_ENC PC12
  123. #endif
  124. #endif