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_RAMPS.h 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2019 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. /**
  23. * Arduino Mega with RAMPS v1.4 (or v1.3) pin assignments
  24. *
  25. * Applies to the following boards:
  26. *
  27. * RAMPS_14_EFB (Hotend, Fan, Bed)
  28. * RAMPS_14_EEB (Hotend0, Hotend1, Bed)
  29. * RAMPS_14_EFF (Hotend, Fan0, Fan1)
  30. * RAMPS_14_EEF (Hotend0, Hotend1, Fan)
  31. * RAMPS_14_SF (Spindle, Controller Fan)
  32. *
  33. * RAMPS_13_EFB (Hotend, Fan, Bed)
  34. * RAMPS_13_EEB (Hotend0, Hotend1, Bed)
  35. * RAMPS_13_EFF (Hotend, Fan0, Fan1)
  36. * RAMPS_13_EEF (Hotend0, Hotend1, Fan)
  37. * RAMPS_13_SF (Spindle, Controller Fan)
  38. *
  39. * Other pins_MYBOARD.h files may override these defaults
  40. *
  41. * Differences between
  42. * RAMPS_13 | RAMPS_14
  43. * 7 | 11
  44. */
  45. #if ENABLED(TARGET_LPC1768)
  46. #error "Oops! Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
  47. #elif defined(__STM32F1__)
  48. #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
  49. #endif
  50. #if DISABLED(IS_RAMPS_SMART, IS_RAMPS_DUO, IS_RAMPS4DUE, TARGET_LPC1768)
  51. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  52. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  53. #endif
  54. #endif
  55. #ifndef BOARD_NAME
  56. #define BOARD_NAME "RAMPS 1.4"
  57. #endif
  58. //
  59. // Servos
  60. //
  61. #ifndef SERVO0_PIN
  62. #ifdef IS_RAMPS_13
  63. #define SERVO0_PIN 7 // RAMPS_13 // Will conflict with BTN_EN2 on LCD_I2C_VIKI
  64. #else
  65. #define SERVO0_PIN 11
  66. #endif
  67. #endif
  68. #ifndef SERVO1_PIN
  69. #define SERVO1_PIN 6
  70. #endif
  71. #ifndef SERVO2_PIN
  72. #define SERVO2_PIN 5
  73. #endif
  74. #ifndef SERVO3_PIN
  75. #define SERVO3_PIN 4
  76. #endif
  77. //
  78. // Limit Switches
  79. //
  80. #ifndef X_STOP_PIN
  81. #ifndef X_MIN_PIN
  82. #define X_MIN_PIN 3
  83. #endif
  84. #ifndef X_MAX_PIN
  85. #define X_MAX_PIN 2
  86. #endif
  87. #endif
  88. #ifndef Y_STOP_PIN
  89. #ifndef Y_MIN_PIN
  90. #define Y_MIN_PIN 14
  91. #endif
  92. #ifndef Y_MAX_PIN
  93. #define Y_MAX_PIN 15
  94. #endif
  95. #endif
  96. #ifndef Z_STOP_PIN
  97. #ifndef Z_MIN_PIN
  98. #define Z_MIN_PIN 18
  99. #endif
  100. #ifndef Z_MAX_PIN
  101. #define Z_MAX_PIN 19
  102. #endif
  103. #endif
  104. //
  105. // Z Probe (when not Z_MIN_PIN)
  106. //
  107. #ifndef Z_MIN_PROBE_PIN
  108. #define Z_MIN_PROBE_PIN 32
  109. #endif
  110. //
  111. // Steppers
  112. //
  113. #define X_STEP_PIN 54
  114. #define X_DIR_PIN 55
  115. #define X_ENABLE_PIN 38
  116. #ifndef X_CS_PIN
  117. #define X_CS_PIN 53
  118. #endif
  119. #define Y_STEP_PIN 60
  120. #define Y_DIR_PIN 61
  121. #define Y_ENABLE_PIN 56
  122. #ifndef Y_CS_PIN
  123. #define Y_CS_PIN 49
  124. #endif
  125. #define Z_STEP_PIN 46
  126. #define Z_DIR_PIN 48
  127. #define Z_ENABLE_PIN 62
  128. #ifndef Z_CS_PIN
  129. #define Z_CS_PIN 40
  130. #endif
  131. #define E0_STEP_PIN 26
  132. #define E0_DIR_PIN 28
  133. #define E0_ENABLE_PIN 24
  134. #ifndef E0_CS_PIN
  135. #define E0_CS_PIN 42
  136. #endif
  137. #define E1_STEP_PIN 36
  138. #define E1_DIR_PIN 34
  139. #define E1_ENABLE_PIN 30
  140. #ifndef E1_CS_PIN
  141. #define E1_CS_PIN 44
  142. #endif
  143. //
  144. // Temperature Sensors
  145. //
  146. #define TEMP_0_PIN 13 // Analog Input
  147. #define TEMP_1_PIN 15 // Analog Input
  148. #define TEMP_BED_PIN 14 // Analog Input
  149. // SPI for Max6675 or Max31855 Thermocouple
  150. #if DISABLED(SDSUPPORT)
  151. #define MAX6675_SS_PIN 66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
  152. #else
  153. #define MAX6675_SS_PIN 66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
  154. #endif
  155. //
  156. // Augmentation for auto-assigning RAMPS plugs
  157. //
  158. #if DISABLED(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
  159. #if HOTENDS > 1
  160. #if TEMP_SENSOR_BED
  161. #define IS_RAMPS_EEB
  162. #else
  163. #define IS_RAMPS_EEF
  164. #endif
  165. #elif TEMP_SENSOR_BED
  166. #define IS_RAMPS_EFB
  167. #else
  168. #define IS_RAMPS_EFF
  169. #endif
  170. #endif
  171. //
  172. // Heaters / Fans
  173. //
  174. #ifndef MOSFET_D_PIN
  175. #define MOSFET_D_PIN -1
  176. #endif
  177. #ifndef RAMPS_D8_PIN
  178. #define RAMPS_D8_PIN 8
  179. #endif
  180. #ifndef RAMPS_D9_PIN
  181. #define RAMPS_D9_PIN 9
  182. #endif
  183. #ifndef RAMPS_D10_PIN
  184. #define RAMPS_D10_PIN 10
  185. #endif
  186. #define HEATER_0_PIN RAMPS_D10_PIN
  187. #if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
  188. #define HEATER_BED_PIN RAMPS_D8_PIN
  189. #elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
  190. #define HEATER_1_PIN RAMPS_D9_PIN
  191. #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
  192. #define HEATER_1_PIN RAMPS_D9_PIN
  193. #define HEATER_BED_PIN RAMPS_D8_PIN
  194. #elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
  195. #define FAN1_PIN RAMPS_D8_PIN
  196. #elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
  197. #define HEATER_BED_PIN RAMPS_D8_PIN
  198. #if HOTENDS == 1
  199. #define FAN1_PIN MOSFET_D_PIN
  200. #else
  201. #define HEATER_1_PIN MOSFET_D_PIN
  202. #endif
  203. #endif
  204. #ifndef FAN_PIN
  205. #if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
  206. #define FAN_PIN RAMPS_D9_PIN
  207. #elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
  208. #define FAN_PIN RAMPS_D8_PIN
  209. #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
  210. #define FAN_PIN 4 // IO pin. Buffer needed
  211. #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
  212. #define FAN_PIN RAMPS_D9_PIN
  213. #endif
  214. #endif
  215. //
  216. // Misc. Functions
  217. //
  218. #define SDSS 53
  219. #define LED_PIN 13
  220. #ifndef FILWIDTH_PIN
  221. #define FILWIDTH_PIN 5 // Analog Input on AUX2
  222. #endif
  223. // RAMPS 1.4 DIO 4 on the servos connector
  224. #ifndef FIL_RUNOUT_PIN
  225. #define FIL_RUNOUT_PIN 4
  226. #endif
  227. #ifndef PS_ON_PIN
  228. #define PS_ON_PIN 12
  229. #endif
  230. #define AUX2_PINS_FREE !( BOTH(ULTRA_LCD, NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD) )
  231. #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN)
  232. #if NUM_SERVOS <= 1 // try to use servo connector first
  233. #define CASE_LIGHT_PIN 6 // MUST BE HARDWARE PWM
  234. #elif AUX2_PINS_FREE
  235. #define CASE_LIGHT_PIN 44 // MUST BE HARDWARE PWM
  236. #endif
  237. #endif
  238. //
  239. // M3/M4/M5 - Spindle/Laser Control
  240. //
  241. #if ENABLED(SPINDLE_LASER_ENABLE) && !PIN_EXISTS(SPINDLE_LASER_ENA)
  242. #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // try to use servo connector first
  243. #define SPINDLE_LASER_ENA_PIN 4 // Pin should have a pullup/pulldown!
  244. #define SPINDLE_LASER_PWM_PIN 6 // MUST BE HARDWARE PWM
  245. #define SPINDLE_DIR_PIN 5
  246. #elif AUX2_PINS_FREE
  247. #define SPINDLE_LASER_ENA_PIN 40 // Pin should have a pullup/pulldown!
  248. #define SPINDLE_LASER_PWM_PIN 44 // MUST BE HARDWARE PWM
  249. #define SPINDLE_DIR_PIN 65
  250. #endif
  251. #endif
  252. #undef AUX2_PINS_FREE
  253. //
  254. // TMC software SPI
  255. //
  256. #if ENABLED(TMC_USE_SW_SPI)
  257. #ifndef TMC_SW_MOSI
  258. #define TMC_SW_MOSI 66
  259. #endif
  260. #ifndef TMC_SW_MISO
  261. #define TMC_SW_MISO 44
  262. #endif
  263. #ifndef TMC_SW_SCK
  264. #define TMC_SW_SCK 64
  265. #endif
  266. #endif
  267. #if HAS_DRIVER(TMC2208) || HAS_DRIVER(TMC2209)
  268. /**
  269. * TMC2208/TMC2209 stepper drivers
  270. *
  271. * Hardware serial communication ports.
  272. * If undefined software serial is used according to the pins below
  273. */
  274. //#define X_HARDWARE_SERIAL Serial1
  275. //#define X2_HARDWARE_SERIAL Serial1
  276. //#define Y_HARDWARE_SERIAL Serial1
  277. //#define Y2_HARDWARE_SERIAL Serial1
  278. //#define Z_HARDWARE_SERIAL Serial1
  279. //#define Z2_HARDWARE_SERIAL Serial1
  280. //#define E0_HARDWARE_SERIAL Serial1
  281. //#define E1_HARDWARE_SERIAL Serial1
  282. //#define E2_HARDWARE_SERIAL Serial1
  283. //#define E3_HARDWARE_SERIAL Serial1
  284. //#define E4_HARDWARE_SERIAL Serial1
  285. //
  286. // Software serial
  287. //
  288. #define X_SERIAL_TX_PIN 40
  289. #define X_SERIAL_RX_PIN 63
  290. #define X2_SERIAL_TX_PIN -1
  291. #define X2_SERIAL_RX_PIN -1
  292. #define Y_SERIAL_TX_PIN 59
  293. #define Y_SERIAL_RX_PIN 64
  294. #define Y2_SERIAL_TX_PIN -1
  295. #define Y2_SERIAL_RX_PIN -1
  296. #define Z_SERIAL_TX_PIN 42
  297. #define Z_SERIAL_RX_PIN 65
  298. #define Z2_SERIAL_TX_PIN -1
  299. #define Z2_SERIAL_RX_PIN -1
  300. #define E0_SERIAL_TX_PIN 44
  301. #define E0_SERIAL_RX_PIN 66
  302. #define E1_SERIAL_TX_PIN -1
  303. #define E1_SERIAL_RX_PIN -1
  304. #define E2_SERIAL_TX_PIN -1
  305. #define E2_SERIAL_RX_PIN -1
  306. #define E3_SERIAL_TX_PIN -1
  307. #define E3_SERIAL_RX_PIN -1
  308. #define E4_SERIAL_TX_PIN -1
  309. #define E4_SERIAL_RX_PIN -1
  310. #endif
  311. //
  312. // Průša i3 MK2 Multiplexer Support
  313. //
  314. #ifndef E_MUX0_PIN
  315. #define E_MUX0_PIN 40 // Z_CS_PIN
  316. #endif
  317. #ifndef E_MUX1_PIN
  318. #define E_MUX1_PIN 42 // E0_CS_PIN
  319. #endif
  320. #ifndef E_MUX2_PIN
  321. #define E_MUX2_PIN 44 // E1_CS_PIN
  322. #endif
  323. //////////////////////////
  324. // LCDs and Controllers //
  325. //////////////////////////
  326. #if ENABLED(ULTRA_LCD)
  327. //
  328. // LCD Display output pins
  329. //
  330. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  331. #define LCD_PINS_RS 49 // CS chip select /SS chip slave select
  332. #define LCD_PINS_ENABLE 51 // SID (MOSI)
  333. #define LCD_PINS_D4 52 // SCK (CLK) clock
  334. #elif BOTH(NEWPANEL, PANEL_ONE)
  335. #define LCD_PINS_RS 40
  336. #define LCD_PINS_ENABLE 42
  337. #define LCD_PINS_D4 65
  338. #define LCD_PINS_D5 66
  339. #define LCD_PINS_D6 44
  340. #define LCD_PINS_D7 64
  341. #else
  342. #if ENABLED(CR10_STOCKDISPLAY)
  343. #define LCD_PINS_RS 27
  344. #define LCD_PINS_ENABLE 29
  345. #define LCD_PINS_D4 25
  346. #if DISABLED(NEWPANEL)
  347. #define BEEPER_PIN 37
  348. #endif
  349. #elif ENABLED(ZONESTAR_LCD)
  350. #define LCD_PINS_RS 64
  351. #define LCD_PINS_ENABLE 44
  352. #define LCD_PINS_D4 63
  353. #define LCD_PINS_D5 40
  354. #define LCD_PINS_D6 42
  355. #define LCD_PINS_D7 65
  356. #else
  357. #if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
  358. #define LCD_PINS_DC 25 // Set as output on init
  359. #define LCD_PINS_RS 27 // Pull low for 1s to init
  360. // DOGM SPI LCD Support
  361. #define DOGLCD_CS 16
  362. #define DOGLCD_MOSI 17
  363. #define DOGLCD_SCK 23
  364. #define DOGLCD_A0 LCD_PINS_DC
  365. #else
  366. #define LCD_PINS_RS 16
  367. #define LCD_PINS_ENABLE 17
  368. #define LCD_PINS_D4 23
  369. #define LCD_PINS_D5 25
  370. #define LCD_PINS_D6 27
  371. #endif
  372. #define LCD_PINS_D7 29
  373. #if DISABLED(NEWPANEL)
  374. #define BEEPER_PIN 33
  375. #endif
  376. #endif
  377. #if DISABLED(NEWPANEL)
  378. // Buttons are attached to a shift register
  379. // Not wired yet
  380. //#define SHIFT_CLK 38
  381. //#define SHIFT_LD 42
  382. //#define SHIFT_OUT 40
  383. //#define SHIFT_EN 17
  384. #endif
  385. #endif
  386. //
  387. // LCD Display input pins
  388. //
  389. #if ENABLED(NEWPANEL)
  390. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  391. #define BEEPER_PIN 37
  392. #if ENABLED(CR10_STOCKDISPLAY)
  393. #define BTN_EN1 17
  394. #define BTN_EN2 23
  395. #else
  396. #define BTN_EN1 31
  397. #define BTN_EN2 33
  398. #endif
  399. #define BTN_ENC 35
  400. #ifndef SD_DETECT_PIN
  401. #define SD_DETECT_PIN 49
  402. #endif
  403. #define KILL_PIN 41
  404. #if ENABLED(BQ_LCD_SMART_CONTROLLER)
  405. #define LCD_BACKLIGHT_PIN 39
  406. #endif
  407. #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  408. #define BTN_EN1 64
  409. #define BTN_EN2 59
  410. #define BTN_ENC 63
  411. #define SD_DETECT_PIN 42
  412. #elif ENABLED(LCD_I2C_PANELOLU2)
  413. #define BTN_EN1 47
  414. #define BTN_EN2 43
  415. #define BTN_ENC 32
  416. #define LCD_SDSS SDSS
  417. #define KILL_PIN 41
  418. #elif ENABLED(LCD_I2C_VIKI)
  419. #define BTN_EN1 22 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
  420. #define BTN_EN2 7 // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
  421. #define BTN_ENC -1
  422. #define LCD_SDSS SDSS
  423. #define SD_DETECT_PIN 49
  424. #elif ANY(VIKI2, miniVIKI)
  425. #define DOGLCD_CS 45
  426. #define DOGLCD_A0 44
  427. #define LCD_SCREEN_ROT_180
  428. #define BEEPER_PIN 33
  429. #define STAT_LED_RED_PIN 32
  430. #define STAT_LED_BLUE_PIN 35
  431. #define BTN_EN1 22
  432. #define BTN_EN2 7
  433. #define BTN_ENC 39
  434. #define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
  435. #define KILL_PIN 31
  436. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  437. #define DOGLCD_CS 29
  438. #define DOGLCD_A0 27
  439. #define BEEPER_PIN 23
  440. #define LCD_BACKLIGHT_PIN 33
  441. #define BTN_EN1 35
  442. #define BTN_EN2 37
  443. #define BTN_ENC 31
  444. #define LCD_SDSS SDSS
  445. #define SD_DETECT_PIN 49
  446. #define KILL_PIN 41
  447. #elif EITHER(MKS_MINI_12864, FYSETC_MINI_12864)
  448. #define BEEPER_PIN 37
  449. #define BTN_ENC 35
  450. #define SD_DETECT_PIN 49
  451. #define KILL_PIN 41
  452. #if ENABLED(MKS_MINI_12864) // Added in Marlin 1.1.6
  453. #define DOGLCD_A0 27
  454. #define DOGLCD_CS 25
  455. // GLCD features
  456. // Uncomment screen orientation
  457. //#define LCD_SCREEN_ROT_90
  458. //#define LCD_SCREEN_ROT_180
  459. //#define LCD_SCREEN_ROT_270
  460. // not connected to a pin
  461. #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
  462. #define BTN_EN1 31
  463. #define BTN_EN2 33
  464. #elif ENABLED(FYSETC_MINI_12864)
  465. // From https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
  466. #define DOGLCD_A0 16
  467. #define DOGLCD_CS 17
  468. #define BTN_EN1 33
  469. #define BTN_EN2 31
  470. //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
  471. // results in LCD soft SPI mode 3, SD soft SPI mode 0
  472. #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
  473. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  474. #ifndef RGB_LED_R_PIN
  475. #define RGB_LED_R_PIN 25
  476. #endif
  477. #ifndef RGB_LED_G_PIN
  478. #define RGB_LED_G_PIN 27
  479. #endif
  480. #ifndef RGB_LED_B_PIN
  481. #define RGB_LED_B_PIN 29
  482. #endif
  483. #elif ENABLED(FYSETC_MINI_12864_2_1)
  484. #define NEOPIXEL_PIN 25
  485. #endif
  486. #endif
  487. #elif ENABLED(MINIPANEL)
  488. #define BEEPER_PIN 42
  489. // not connected to a pin
  490. #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
  491. #define DOGLCD_A0 44
  492. #define DOGLCD_CS 66
  493. // GLCD features
  494. // Uncomment screen orientation
  495. //#define LCD_SCREEN_ROT_90
  496. //#define LCD_SCREEN_ROT_180
  497. //#define LCD_SCREEN_ROT_270
  498. #define BTN_EN1 40
  499. #define BTN_EN2 63
  500. #define BTN_ENC 59
  501. #define SD_DETECT_PIN 49
  502. #define KILL_PIN 64
  503. #elif ENABLED(ZONESTAR_LCD)
  504. #define ADC_KEYPAD_PIN 12
  505. #elif ENABLED(AZSMZ_12864)
  506. // Pins only defined for RAMPS_SMART currently
  507. #else
  508. // Beeper on AUX-4
  509. #define BEEPER_PIN 33
  510. // Buttons are directly attached using AUX-2
  511. #if ENABLED(REPRAPWORLD_KEYPAD)
  512. #define SHIFT_OUT 40
  513. #define SHIFT_CLK 44
  514. #define SHIFT_LD 42
  515. #define BTN_EN1 64
  516. #define BTN_EN2 59
  517. #define BTN_ENC 63
  518. #elif ENABLED(PANEL_ONE)
  519. #define BTN_EN1 59 // AUX2 PIN 3
  520. #define BTN_EN2 63 // AUX2 PIN 4
  521. #define BTN_ENC 49 // AUX3 PIN 7
  522. #else
  523. #define BTN_EN1 37
  524. #define BTN_EN2 35
  525. #define BTN_ENC 31
  526. #endif
  527. #if ENABLED(G3D_PANEL)
  528. #define SD_DETECT_PIN 49
  529. #define KILL_PIN 41
  530. #endif
  531. #endif
  532. #endif // NEWPANEL
  533. #endif // ULTRA_LCD