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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  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 HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN)
  242. #if !NUM_SERVOS // Use servo connector if possible
  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. #else
  251. #error "No auto-assignable Spindle/Laser pins available."
  252. #endif
  253. #endif
  254. #undef AUX2_PINS_FREE
  255. //
  256. // TMC software SPI
  257. //
  258. #if ENABLED(TMC_USE_SW_SPI)
  259. #ifndef TMC_SW_MOSI
  260. #define TMC_SW_MOSI 66
  261. #endif
  262. #ifndef TMC_SW_MISO
  263. #define TMC_SW_MISO 44
  264. #endif
  265. #ifndef TMC_SW_SCK
  266. #define TMC_SW_SCK 64
  267. #endif
  268. #endif
  269. #if HAS_DRIVER(TMC2208) || HAS_DRIVER(TMC2209)
  270. /**
  271. * TMC2208/TMC2209 stepper drivers
  272. *
  273. * Hardware serial communication ports.
  274. * If undefined software serial is used according to the pins below
  275. */
  276. //#define X_HARDWARE_SERIAL Serial1
  277. //#define X2_HARDWARE_SERIAL Serial1
  278. //#define Y_HARDWARE_SERIAL Serial1
  279. //#define Y2_HARDWARE_SERIAL Serial1
  280. //#define Z_HARDWARE_SERIAL Serial1
  281. //#define Z2_HARDWARE_SERIAL Serial1
  282. //#define E0_HARDWARE_SERIAL Serial1
  283. //#define E1_HARDWARE_SERIAL Serial1
  284. //#define E2_HARDWARE_SERIAL Serial1
  285. //#define E3_HARDWARE_SERIAL Serial1
  286. //#define E4_HARDWARE_SERIAL Serial1
  287. //
  288. // Software serial
  289. //
  290. #define X_SERIAL_TX_PIN 40
  291. #define X_SERIAL_RX_PIN 63
  292. #define X2_SERIAL_TX_PIN -1
  293. #define X2_SERIAL_RX_PIN -1
  294. #define Y_SERIAL_TX_PIN 59
  295. #define Y_SERIAL_RX_PIN 64
  296. #define Y2_SERIAL_TX_PIN -1
  297. #define Y2_SERIAL_RX_PIN -1
  298. #define Z_SERIAL_TX_PIN 42
  299. #define Z_SERIAL_RX_PIN 65
  300. #define Z2_SERIAL_TX_PIN -1
  301. #define Z2_SERIAL_RX_PIN -1
  302. #define E0_SERIAL_TX_PIN 44
  303. #define E0_SERIAL_RX_PIN 66
  304. #define E1_SERIAL_TX_PIN -1
  305. #define E1_SERIAL_RX_PIN -1
  306. #define E2_SERIAL_TX_PIN -1
  307. #define E2_SERIAL_RX_PIN -1
  308. #define E3_SERIAL_TX_PIN -1
  309. #define E3_SERIAL_RX_PIN -1
  310. #define E4_SERIAL_TX_PIN -1
  311. #define E4_SERIAL_RX_PIN -1
  312. #endif
  313. //
  314. // Průša i3 MK2 Multiplexer Support
  315. //
  316. #ifndef E_MUX0_PIN
  317. #define E_MUX0_PIN 40 // Z_CS_PIN
  318. #endif
  319. #ifndef E_MUX1_PIN
  320. #define E_MUX1_PIN 42 // E0_CS_PIN
  321. #endif
  322. #ifndef E_MUX2_PIN
  323. #define E_MUX2_PIN 44 // E1_CS_PIN
  324. #endif
  325. //////////////////////////
  326. // LCDs and Controllers //
  327. //////////////////////////
  328. #if HAS_SPI_LCD
  329. //
  330. // LCD Display output pins
  331. //
  332. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  333. #define LCD_PINS_RS 49 // CS chip select /SS chip slave select
  334. #define LCD_PINS_ENABLE 51 // SID (MOSI)
  335. #define LCD_PINS_D4 52 // SCK (CLK) clock
  336. #elif BOTH(NEWPANEL, PANEL_ONE)
  337. #define LCD_PINS_RS 40
  338. #define LCD_PINS_ENABLE 42
  339. #define LCD_PINS_D4 65
  340. #define LCD_PINS_D5 66
  341. #define LCD_PINS_D6 44
  342. #define LCD_PINS_D7 64
  343. #else
  344. #if ENABLED(CR10_STOCKDISPLAY)
  345. #define LCD_PINS_RS 27
  346. #define LCD_PINS_ENABLE 29
  347. #define LCD_PINS_D4 25
  348. #if DISABLED(NEWPANEL)
  349. #define BEEPER_PIN 37
  350. #endif
  351. #elif ENABLED(ZONESTAR_LCD)
  352. #define LCD_PINS_RS 64
  353. #define LCD_PINS_ENABLE 44
  354. #define LCD_PINS_D4 63
  355. #define LCD_PINS_D5 40
  356. #define LCD_PINS_D6 42
  357. #define LCD_PINS_D7 65
  358. #else
  359. #if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
  360. #define LCD_PINS_DC 25 // Set as output on init
  361. #define LCD_PINS_RS 27 // Pull low for 1s to init
  362. // DOGM SPI LCD Support
  363. #define DOGLCD_CS 16
  364. #define DOGLCD_MOSI 17
  365. #define DOGLCD_SCK 23
  366. #define DOGLCD_A0 LCD_PINS_DC
  367. #else
  368. #define LCD_PINS_RS 16
  369. #define LCD_PINS_ENABLE 17
  370. #define LCD_PINS_D4 23
  371. #define LCD_PINS_D5 25
  372. #define LCD_PINS_D6 27
  373. #endif
  374. #define LCD_PINS_D7 29
  375. #if DISABLED(NEWPANEL)
  376. #define BEEPER_PIN 33
  377. #endif
  378. #endif
  379. #if DISABLED(NEWPANEL)
  380. // Buttons are attached to a shift register
  381. // Not wired yet
  382. //#define SHIFT_CLK 38
  383. //#define SHIFT_LD 42
  384. //#define SHIFT_OUT 40
  385. //#define SHIFT_EN 17
  386. #endif
  387. #endif
  388. //
  389. // LCD Display input pins
  390. //
  391. #if ENABLED(NEWPANEL)
  392. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  393. #define BEEPER_PIN 37
  394. #if ENABLED(CR10_STOCKDISPLAY)
  395. #define BTN_EN1 17
  396. #define BTN_EN2 23
  397. #else
  398. #define BTN_EN1 31
  399. #define BTN_EN2 33
  400. #endif
  401. #define BTN_ENC 35
  402. #ifndef SD_DETECT_PIN
  403. #define SD_DETECT_PIN 49
  404. #endif
  405. #define KILL_PIN 41
  406. #if ENABLED(BQ_LCD_SMART_CONTROLLER)
  407. #define LCD_BACKLIGHT_PIN 39
  408. #endif
  409. #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  410. #define BTN_EN1 64
  411. #define BTN_EN2 59
  412. #define BTN_ENC 63
  413. #define SD_DETECT_PIN 42
  414. #elif ENABLED(LCD_I2C_PANELOLU2)
  415. #define BTN_EN1 47
  416. #define BTN_EN2 43
  417. #define BTN_ENC 32
  418. #define LCD_SDSS SDSS
  419. #define KILL_PIN 41
  420. #elif ENABLED(LCD_I2C_VIKI)
  421. #define BTN_EN1 22 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
  422. #define BTN_EN2 7 // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
  423. #define BTN_ENC -1
  424. #define LCD_SDSS SDSS
  425. #define SD_DETECT_PIN 49
  426. #elif ANY(VIKI2, miniVIKI)
  427. #define DOGLCD_CS 45
  428. #define DOGLCD_A0 44
  429. #define LCD_SCREEN_ROT_180
  430. #define BEEPER_PIN 33
  431. #define STAT_LED_RED_PIN 32
  432. #define STAT_LED_BLUE_PIN 35
  433. #define BTN_EN1 22
  434. #define BTN_EN2 7
  435. #define BTN_ENC 39
  436. #define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
  437. #define KILL_PIN 31
  438. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  439. #define DOGLCD_CS 29
  440. #define DOGLCD_A0 27
  441. #define BEEPER_PIN 23
  442. #define LCD_BACKLIGHT_PIN 33
  443. #define BTN_EN1 35
  444. #define BTN_EN2 37
  445. #define BTN_ENC 31
  446. #define LCD_SDSS SDSS
  447. #define SD_DETECT_PIN 49
  448. #define KILL_PIN 41
  449. #elif EITHER(MKS_MINI_12864, FYSETC_MINI_12864)
  450. #define BEEPER_PIN 37
  451. #define BTN_ENC 35
  452. #define SD_DETECT_PIN 49
  453. #define KILL_PIN 41
  454. #if ENABLED(MKS_MINI_12864) // Added in Marlin 1.1.6
  455. #define DOGLCD_A0 27
  456. #define DOGLCD_CS 25
  457. // GLCD features
  458. // Uncomment screen orientation
  459. //#define LCD_SCREEN_ROT_90
  460. //#define LCD_SCREEN_ROT_180
  461. //#define LCD_SCREEN_ROT_270
  462. // not connected to a pin
  463. #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
  464. #define BTN_EN1 31
  465. #define BTN_EN2 33
  466. #elif ENABLED(FYSETC_MINI_12864)
  467. // From https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
  468. #define DOGLCD_A0 16
  469. #define DOGLCD_CS 17
  470. #define BTN_EN1 33
  471. #define BTN_EN2 31
  472. //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
  473. // results in LCD soft SPI mode 3, SD soft SPI mode 0
  474. #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
  475. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  476. #ifndef RGB_LED_R_PIN
  477. #define RGB_LED_R_PIN 25
  478. #endif
  479. #ifndef RGB_LED_G_PIN
  480. #define RGB_LED_G_PIN 27
  481. #endif
  482. #ifndef RGB_LED_B_PIN
  483. #define RGB_LED_B_PIN 29
  484. #endif
  485. #elif ENABLED(FYSETC_MINI_12864_2_1)
  486. #define NEOPIXEL_PIN 25
  487. #endif
  488. #endif
  489. #elif ENABLED(MINIPANEL)
  490. #define BEEPER_PIN 42
  491. // not connected to a pin
  492. #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
  493. #define DOGLCD_A0 44
  494. #define DOGLCD_CS 66
  495. // GLCD features
  496. // Uncomment screen orientation
  497. //#define LCD_SCREEN_ROT_90
  498. //#define LCD_SCREEN_ROT_180
  499. //#define LCD_SCREEN_ROT_270
  500. #define BTN_EN1 40
  501. #define BTN_EN2 63
  502. #define BTN_ENC 59
  503. #define SD_DETECT_PIN 49
  504. #define KILL_PIN 64
  505. #elif ENABLED(ZONESTAR_LCD)
  506. #define ADC_KEYPAD_PIN 12
  507. #elif ENABLED(AZSMZ_12864)
  508. // Pins only defined for RAMPS_SMART currently
  509. #else
  510. // Beeper on AUX-4
  511. #define BEEPER_PIN 33
  512. // Buttons are directly attached using AUX-2
  513. #if ENABLED(REPRAPWORLD_KEYPAD)
  514. #define SHIFT_OUT 40
  515. #define SHIFT_CLK 44
  516. #define SHIFT_LD 42
  517. #define BTN_EN1 64
  518. #define BTN_EN2 59
  519. #define BTN_ENC 63
  520. #elif ENABLED(PANEL_ONE)
  521. #define BTN_EN1 59 // AUX2 PIN 3
  522. #define BTN_EN2 63 // AUX2 PIN 4
  523. #define BTN_ENC 49 // AUX3 PIN 7
  524. #else
  525. #define BTN_EN1 37
  526. #define BTN_EN2 35
  527. #define BTN_ENC 31
  528. #endif
  529. #if ENABLED(G3D_PANEL)
  530. #define SD_DETECT_PIN 49
  531. #define KILL_PIN 41
  532. #endif
  533. #endif
  534. #endif // NEWPANEL
  535. #endif // HAS_SPI_LCD