My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  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. #include "../inc/MarlinConfig.h"
  24. #define _UxGT(a) a
  25. // Fallback if no language is set. DON'T CHANGE
  26. #ifndef LCD_LANGUAGE
  27. #define LCD_LANGUAGE en
  28. #endif
  29. // For character-based LCD controllers (DISPLAY_CHARSET_HD44780)
  30. #define JAPANESE 1
  31. #define WESTERN 2
  32. #define CYRILLIC 3
  33. // NOTE: IF YOU CHANGE LANGUAGE FILES OR MERGE A FILE WITH CHANGES
  34. //
  35. // ==> ALWAYS TRY TO COMPILE MARLIN WITH/WITHOUT "ULTIPANEL" / "ULTRA_LCD" / "SDSUPPORT" #define IN "Configuration.h"
  36. // ==> ALSO TRY ALL AVAILABLE LANGUAGE OPTIONS
  37. // See also https://marlinfw.org/docs/development/lcd_language.html
  38. // Languages
  39. // an Aragonese
  40. // bg Bulgarian
  41. // ca Catalan
  42. // cz Czech
  43. // da Danish
  44. // de German
  45. // el Greek
  46. // el_gr Greek (Greece)
  47. // en English
  48. // es Spanish
  49. // eu Basque-Euskera
  50. // fi Finnish
  51. // fr French
  52. // gl Galician
  53. // hr Croatian
  54. // hu Hungarian
  55. // it Italian
  56. // jp_kana Japanese
  57. // ko_KR Korean (South Korea)
  58. // nl Dutch
  59. // pl Polish
  60. // pt Portuguese
  61. // pt_br Portuguese (Brazilian)
  62. // ro Romanian
  63. // ru Russian
  64. // sk Slovak
  65. // sv Swedish
  66. // tr Turkish
  67. // uk Ukrainian
  68. // vi Vietnamese
  69. // zh_CN Chinese (Simplified)
  70. // zh_TW Chinese (Traditional)
  71. #ifdef DEFAULT_SOURCE_CODE_URL
  72. #undef SOURCE_CODE_URL
  73. #define SOURCE_CODE_URL DEFAULT_SOURCE_CODE_URL
  74. #endif
  75. #ifdef CUSTOM_MACHINE_NAME
  76. #undef MACHINE_NAME
  77. #define MACHINE_NAME CUSTOM_MACHINE_NAME
  78. #elif defined(DEFAULT_MACHINE_NAME)
  79. #undef MACHINE_NAME
  80. #define MACHINE_NAME DEFAULT_MACHINE_NAME
  81. #endif
  82. #ifndef MACHINE_UUID
  83. #define MACHINE_UUID DEFAULT_MACHINE_UUID
  84. #endif
  85. #define MARLIN_WEBSITE_URL "marlinfw.org"
  86. //#if !defined(STRING_SPLASH_LINE3) && defined(WEBSITE_URL)
  87. // #define STRING_SPLASH_LINE3 WEBSITE_URL
  88. //#endif
  89. //
  90. // Common Serial Console Messages
  91. // Don't change these strings because serial hosts look for them.
  92. //
  93. #define STR_ENQUEUEING "enqueueing \""
  94. #define STR_POWERUP "PowerUp"
  95. #define STR_EXTERNAL_RESET " External Reset"
  96. #define STR_BROWNOUT_RESET " Brown out Reset"
  97. #define STR_WATCHDOG_RESET " Watchdog Reset"
  98. #define STR_SOFTWARE_RESET " Software Reset"
  99. #define STR_FREE_MEMORY " Free Memory: "
  100. #define STR_PLANNER_BUFFER_BYTES " PlannerBufferBytes: "
  101. #define STR_OK "ok"
  102. #define STR_WAIT "wait"
  103. #define STR_STATS "Stats: "
  104. #define STR_FILE_SAVED "Done saving file."
  105. #define STR_ERR_LINE_NO "Line Number is not Last Line Number+1, Last Line: "
  106. #define STR_ERR_CHECKSUM_MISMATCH "checksum mismatch, Last Line: "
  107. #define STR_ERR_NO_CHECKSUM "No Checksum with line number, Last Line: "
  108. #define STR_FILE_PRINTED "Done printing file"
  109. #define STR_NO_MEDIA "No media"
  110. #define STR_BEGIN_FILE_LIST "Begin file list"
  111. #define STR_END_FILE_LIST "End file list"
  112. #define STR_INVALID_EXTRUDER "Invalid extruder"
  113. #define STR_INVALID_E_STEPPER "Invalid E stepper"
  114. #define STR_E_STEPPER_NOT_SPECIFIED "E stepper not specified"
  115. #define STR_INVALID_SOLENOID "Invalid solenoid"
  116. #define STR_COUNT_X " Count X:"
  117. #define STR_COUNT_A " Count A:"
  118. #define STR_WATCHDOG_FIRED "Watchdog timeout. Reset required."
  119. #define STR_ERR_KILLED "Printer halted. kill() called!"
  120. #define STR_FLOWMETER_FAULT "Coolant flow fault. Flowmeter safety is active. Attention required."
  121. #define STR_ERR_STOPPED "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
  122. #define STR_ERR_SERIAL_MISMATCH "Serial status mismatch"
  123. #define STR_BUSY_PROCESSING "busy: processing"
  124. #define STR_BUSY_PAUSED_FOR_USER "busy: paused for user"
  125. #define STR_BUSY_PAUSED_FOR_INPUT "busy: paused for input"
  126. #define STR_Z_MOVE_COMP "Z_move_comp"
  127. #define STR_RESEND "Resend: "
  128. #define STR_UNKNOWN_COMMAND "Unknown command: \""
  129. #define STR_ACTIVE_EXTRUDER "Active Extruder: "
  130. #define STR_PROBE_OFFSET "Probe Offset"
  131. #define STR_SKEW_MIN "min_skew_factor: "
  132. #define STR_SKEW_MAX "max_skew_factor: "
  133. #define STR_ERR_MATERIAL_INDEX "M145 S<index> out of range (0-1)"
  134. #define STR_ERR_M421_PARAMETERS "M421 incorrect parameter usage"
  135. #define STR_ERR_BAD_PLANE_MODE "G5 requires XY plane mode"
  136. #define STR_ERR_MESH_XY "Mesh point out of range"
  137. #define STR_ERR_ARC_ARGS "G2/G3 bad parameters"
  138. #define STR_ERR_PROTECTED_PIN "Protected Pin"
  139. #define STR_ERR_M420_FAILED "Failed to enable Bed Leveling"
  140. #define STR_ERR_M428_TOO_FAR "Too far from reference point"
  141. #define STR_ERR_M303_DISABLED "PIDTEMP disabled"
  142. #define STR_M119_REPORT "Reporting endstop status"
  143. #define STR_ON "ON"
  144. #define STR_OFF "OFF"
  145. #define STR_ENDSTOP_HIT "TRIGGERED"
  146. #define STR_ENDSTOP_OPEN "open"
  147. #define STR_HOTEND_OFFSET "Hotend offsets:"
  148. #define STR_DUPLICATION_MODE "Duplication mode: "
  149. #define STR_SOFT_ENDSTOPS "Soft endstops: "
  150. #define STR_SOFT_MIN " Min: "
  151. #define STR_SOFT_MAX " Max: "
  152. #define STR_SAVED_POS "Position saved"
  153. #define STR_RESTORING_POS "Restoring position"
  154. #define STR_INVALID_POS_SLOT "Invalid slot. Total: "
  155. #define STR_SD_CANT_OPEN_SUBDIR "Cannot open subdir "
  156. #define STR_SD_INIT_FAIL "No SD card"
  157. #define STR_SD_VOL_INIT_FAIL "volume.init failed"
  158. #define STR_SD_OPENROOT_FAIL "openRoot failed"
  159. #define STR_SD_CARD_OK "SD card ok"
  160. #define STR_SD_WORKDIR_FAIL "workDir open failed"
  161. #define STR_SD_OPEN_FILE_FAIL "open failed, File: "
  162. #define STR_SD_FILE_OPENED "File opened: "
  163. #define STR_SD_SIZE " Size: "
  164. #define STR_SD_FILE_SELECTED "File selected"
  165. #define STR_SD_WRITE_TO_FILE "Writing to file: "
  166. #define STR_SD_PRINTING_BYTE "SD printing byte "
  167. #define STR_SD_NOT_PRINTING "Not SD printing"
  168. #define STR_SD_ERR_WRITE_TO_FILE "error writing to file"
  169. #define STR_SD_ERR_READ "SD read error"
  170. #define STR_SD_CANT_ENTER_SUBDIR "Cannot enter subdir: "
  171. #define STR_ENDSTOPS_HIT "endstops hit: "
  172. #define STR_ERR_COLD_EXTRUDE_STOP " cold extrusion prevented"
  173. #define STR_ERR_LONG_EXTRUDE_STOP " too long extrusion prevented"
  174. #define STR_ERR_HOTEND_TOO_COLD "Hotend too cold"
  175. #define STR_ERR_EEPROM_WRITE "Error writing to EEPROM!"
  176. #define STR_FILAMENT_CHANGE_HEAT_LCD "Press button to heat nozzle"
  177. #define STR_FILAMENT_CHANGE_INSERT_LCD "Insert filament and press button"
  178. #define STR_FILAMENT_CHANGE_WAIT_LCD "Press button to resume"
  179. #define STR_FILAMENT_CHANGE_HEAT_M108 "Send M108 to heat nozzle"
  180. #define STR_FILAMENT_CHANGE_INSERT_M108 "Insert filament and send M108"
  181. #define STR_FILAMENT_CHANGE_WAIT_M108 "Send M108 to resume"
  182. #define STR_STOP_BLTOUCH "!! STOP called because of BLTouch error - restart with M999"
  183. #define STR_STOP_UNHOMED "!! STOP called because of unhomed error - restart with M999"
  184. #define STR_KILL_INACTIVE_TIME "!! KILL caused by too much inactive time - current command: "
  185. #define STR_KILL_BUTTON "!! KILL caused by KILL button/pin"
  186. // temperature.cpp strings
  187. #define STR_PID_AUTOTUNE_START "PID Autotune start"
  188. #define STR_PID_BAD_HEATER_ID "PID Autotune failed! Bad heater id"
  189. #define STR_PID_TEMP_TOO_HIGH "PID Autotune failed! Temperature too high"
  190. #define STR_PID_TIMEOUT "PID Autotune failed! timeout"
  191. #define STR_BIAS " bias: "
  192. #define STR_D_COLON " d: "
  193. #define STR_T_MIN " min: "
  194. #define STR_T_MAX " max: "
  195. #define STR_KU " Ku: "
  196. #define STR_TU " Tu: "
  197. #define STR_CLASSIC_PID " Classic PID "
  198. #define STR_KP " Kp: "
  199. #define STR_KI " Ki: "
  200. #define STR_KD " Kd: "
  201. #define STR_PID_AUTOTUNE_FINISHED "PID Autotune finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
  202. #define STR_PID_DEBUG " PID_DEBUG "
  203. #define STR_PID_DEBUG_INPUT ": Input "
  204. #define STR_PID_DEBUG_OUTPUT " Output "
  205. #define STR_PID_DEBUG_PTERM " pTerm "
  206. #define STR_PID_DEBUG_ITERM " iTerm "
  207. #define STR_PID_DEBUG_DTERM " dTerm "
  208. #define STR_PID_DEBUG_CTERM " cTerm "
  209. #define STR_INVALID_EXTRUDER_NUM " - Invalid extruder number !"
  210. #define STR_HEATER_BED "bed"
  211. #define STR_HEATER_CHAMBER "chamber"
  212. #define STR_COOLER "cooler"
  213. #define STR_MOTHERBOARD "motherboard"
  214. #define STR_PROBE "probe"
  215. #define STR_REDUNDANT "redundant "
  216. #define STR_LASER_TEMP "laser temperature"
  217. #define STR_STOPPED_HEATER ", system stopped! Heater_ID: "
  218. #define STR_REDUNDANCY "Heater switched off. Temperature difference between temp sensors is too high !"
  219. #define STR_T_HEATING_FAILED "Heating failed"
  220. #define STR_T_THERMAL_RUNAWAY "Thermal Runaway"
  221. #define STR_T_MAXTEMP "MAXTEMP triggered"
  222. #define STR_T_MINTEMP "MINTEMP triggered"
  223. #define STR_ERR_PROBING_FAILED "Probing Failed"
  224. #define STR_ZPROBE_OUT_SER "Z Probe Past Bed"
  225. // Debug
  226. #define STR_DEBUG_PREFIX "DEBUG:"
  227. #define STR_DEBUG_OFF "off"
  228. #define STR_DEBUG_ECHO "ECHO"
  229. #define STR_DEBUG_INFO "INFO"
  230. #define STR_DEBUG_ERRORS "ERRORS"
  231. #define STR_DEBUG_DRYRUN "DRYRUN"
  232. #define STR_DEBUG_COMMUNICATION "COMMUNICATION"
  233. #define STR_DEBUG_LEVELING "LEVELING"
  234. #define STR_PRINTER_LOCKED "Printer locked! (Unlock with M511 or LCD)"
  235. #define STR_WRONG_PASSWORD "Incorrect Password"
  236. #define STR_PASSWORD_TOO_LONG "Password too long"
  237. #define STR_PASSWORD_REMOVED "Password removed"
  238. #define STR_REMINDER_SAVE_SETTINGS "Remember to save!"
  239. #define STR_PASSWORD_SET "Password is "
  240. //
  241. // Endstop Names used by Endstops::report_states
  242. //
  243. #define STR_X_MIN "x_min"
  244. #define STR_X_MAX "x_max"
  245. #define STR_X2_MIN "x2_min"
  246. #define STR_X2_MAX "x2_max"
  247. #if HAS_Y_AXIS
  248. #define STR_Y_MIN "y_min"
  249. #define STR_Y_MAX "y_max"
  250. #define STR_Y2_MIN "y2_min"
  251. #define STR_Y2_MAX "y2_max"
  252. #endif
  253. #if HAS_Z_AXIS
  254. #define STR_Z_MIN "z_min"
  255. #define STR_Z_MAX "z_max"
  256. #define STR_Z2_MIN "z2_min"
  257. #define STR_Z2_MAX "z2_max"
  258. #define STR_Z3_MIN "z3_min"
  259. #define STR_Z3_MAX "z3_max"
  260. #define STR_Z4_MIN "z4_min"
  261. #define STR_Z4_MAX "z4_max"
  262. #endif
  263. #define STR_Z_PROBE "z_probe"
  264. #define STR_PROBE_EN "probe_en"
  265. #define STR_FILAMENT_RUNOUT_SENSOR "filament"
  266. // General axis names
  267. #define STR_X "X"
  268. #define STR_Y "Y"
  269. #define STR_Z "Z"
  270. #define STR_I AXIS4_STR
  271. #define STR_J AXIS5_STR
  272. #define STR_K AXIS6_STR
  273. #define STR_E "E"
  274. #if IS_KINEMATIC
  275. #define STR_A "A"
  276. #define STR_B "B"
  277. #define STR_C "C"
  278. #else
  279. #define STR_A "X"
  280. #define STR_B "Y"
  281. #define STR_C "Z"
  282. #endif
  283. #define STR_X2 "X2"
  284. #define STR_Y2 "Y2"
  285. #define STR_Z2 "Z2"
  286. #define STR_Z3 "Z3"
  287. #define STR_Z4 "Z4"
  288. #define LCD_STR_A STR_A
  289. #define LCD_STR_B STR_B
  290. #define LCD_STR_C STR_C
  291. #define LCD_STR_I STR_I
  292. #define LCD_STR_J STR_J
  293. #define LCD_STR_K STR_K
  294. #define LCD_STR_E STR_E
  295. // Extra Axis and Endstop Names
  296. #if LINEAR_AXES >= 4
  297. #if AXIS4_NAME == 'A'
  298. #define AXIS4_STR "A"
  299. #define STR_I_MIN "a_min"
  300. #define STR_I_MAX "a_max"
  301. #elif AXIS4_NAME == 'B'
  302. #define AXIS4_STR "B"
  303. #define STR_I_MIN "b_min"
  304. #define STR_I_MAX "b_max"
  305. #elif AXIS4_NAME == 'C'
  306. #define AXIS4_STR "C"
  307. #define STR_I_MIN "c_min"
  308. #define STR_I_MAX "c_max"
  309. #elif AXIS4_NAME == 'U'
  310. #define AXIS4_STR "U"
  311. #define STR_I_MIN "u_min"
  312. #define STR_I_MAX "u_max"
  313. #elif AXIS4_NAME == 'V'
  314. #define AXIS4_STR "V"
  315. #define STR_I_MIN "v_min"
  316. #define STR_I_MAX "v_max"
  317. #elif AXIS4_NAME == 'W'
  318. #define AXIS4_STR "W"
  319. #define STR_I_MIN "w_min"
  320. #define STR_I_MAX "w_max"
  321. #else
  322. #define AXIS4_STR "A"
  323. #define STR_I_MIN "a_min"
  324. #define STR_I_MAX "a_max"
  325. #endif
  326. #else
  327. #define AXIS4_STR ""
  328. #endif
  329. #if LINEAR_AXES >= 5
  330. #if AXIS5_NAME == 'A'
  331. #define AXIS5_STR "A"
  332. #define STR_J_MIN "a_min"
  333. #define STR_J_MAX "a_max"
  334. #elif AXIS5_NAME == 'B'
  335. #define AXIS5_STR "B"
  336. #define STR_J_MIN "b_min"
  337. #define STR_J_MAX "b_max"
  338. #elif AXIS5_NAME == 'C'
  339. #define AXIS5_STR "C"
  340. #define STR_J_MIN "c_min"
  341. #define STR_J_MAX "c_max"
  342. #elif AXIS5_NAME == 'U'
  343. #define AXIS5_STR "U"
  344. #define STR_J_MIN "u_min"
  345. #define STR_J_MAX "u_max"
  346. #elif AXIS5_NAME == 'V'
  347. #define AXIS5_STR "V"
  348. #define STR_J_MIN "v_min"
  349. #define STR_J_MAX "v_max"
  350. #elif AXIS5_NAME == 'W'
  351. #define AXIS5_STR "W"
  352. #define STR_J_MIN "w_min"
  353. #define STR_J_MAX "w_max"
  354. #else
  355. #define AXIS5_STR "B"
  356. #define STR_J_MIN "b_min"
  357. #define STR_J_MAX "b_max"
  358. #endif
  359. #else
  360. #define AXIS5_STR ""
  361. #endif
  362. #if LINEAR_AXES >= 6
  363. #if AXIS6_NAME == 'A'
  364. #define AXIS6_STR "A"
  365. #define STR_K_MIN "a_min"
  366. #define STR_K_MAX "a_max"
  367. #elif AXIS6_NAME == 'B'
  368. #define AXIS6_STR "B"
  369. #define STR_K_MIN "b_min"
  370. #define STR_K_MAX "b_max"
  371. #elif AXIS6_NAME == 'C'
  372. #define AXIS6_STR "C"
  373. #define STR_K_MIN "c_min"
  374. #define STR_K_MAX "c_max"
  375. #elif AXIS6_NAME == 'U'
  376. #define AXIS6_STR "U"
  377. #define STR_K_MIN "u_min"
  378. #define STR_K_MAX "u_max"
  379. #elif AXIS6_NAME == 'V'
  380. #define AXIS6_STR "V"
  381. #define STR_K_MIN "v_min"
  382. #define STR_K_MAX "v_max"
  383. #elif AXIS6_NAME == 'W'
  384. #define AXIS6_STR "W"
  385. #define STR_K_MIN "w_min"
  386. #define STR_K_MAX "w_max"
  387. #else
  388. #define AXIS6_STR "C"
  389. #define STR_K_MIN "c_min"
  390. #define STR_K_MAX "c_max"
  391. #endif
  392. #else
  393. #define AXIS6_STR ""
  394. #endif
  395. #if EITHER(HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL)
  396. // Custom characters defined in the first 8 characters of the LCD
  397. #define LCD_STR_BEDTEMP "\x00" // Print only as a char. This will have 'unexpected' results when used in a string!
  398. #define LCD_STR_DEGREE "\x01"
  399. #define LCD_STR_THERMOMETER "\x02" // Still used with string concatenation
  400. #define LCD_STR_UPLEVEL "\x03"
  401. #define LCD_STR_REFRESH "\x04"
  402. #define LCD_STR_FOLDER "\x05"
  403. #define LCD_STR_FEEDRATE "\x06"
  404. #define LCD_STR_CLOCK "\x07"
  405. #define LCD_STR_ARROW_RIGHT ">" /* from the default character set */
  406. #else
  407. //
  408. // Custom characters from Marlin_symbols.fon which was merged into ISO10646-0-3.bdf
  409. // \x00 intentionally skipped to avoid problems in strings
  410. //
  411. #define LCD_STR_REFRESH "\x01"
  412. #define LCD_STR_FOLDER "\x02"
  413. #define LCD_STR_ARROW_RIGHT "\x03"
  414. #define LCD_STR_UPLEVEL "\x04"
  415. #define LCD_STR_CLOCK "\x05"
  416. #define LCD_STR_FEEDRATE "\x06"
  417. #define LCD_STR_BEDTEMP "\x07"
  418. #define LCD_STR_THERMOMETER "\x08"
  419. #define LCD_STR_DEGREE "\x09"
  420. #define LCD_STR_SPECIAL_MAX '\x09'
  421. // Maximum here is 0x1F because 0x20 is ' ' (space) and the normal charsets begin.
  422. // Better stay below 0x10 because DISPLAY_CHARSET_HD44780_WESTERN begins here.
  423. // Symbol characters
  424. #define LCD_STR_FILAM_DIA "\xF8"
  425. #define LCD_STR_FILAM_MUL "\xA4"
  426. #endif
  427. /**
  428. * Tool indexes for LCD display only
  429. *
  430. * By convention the LCD shows "E1" for the first extruder.
  431. * However, internal to Marlin E0/T0 is the first tool, and
  432. * most board silkscreens say "E0." Zero-based labels will
  433. * make these indexes consistent but this defies expectation.
  434. */
  435. #if ENABLED(NUMBER_TOOLS_FROM_0)
  436. #define LCD_FIRST_TOOL 0
  437. #define LCD_STR_N0 "0"
  438. #define LCD_STR_N1 "1"
  439. #define LCD_STR_N2 "2"
  440. #define LCD_STR_N3 "3"
  441. #define LCD_STR_N4 "4"
  442. #define LCD_STR_N5 "5"
  443. #define LCD_STR_N6 "6"
  444. #define LCD_STR_N7 "7"
  445. #else
  446. #define LCD_FIRST_TOOL 1
  447. #define LCD_STR_N0 "1"
  448. #define LCD_STR_N1 "2"
  449. #define LCD_STR_N2 "3"
  450. #define LCD_STR_N3 "4"
  451. #define LCD_STR_N4 "5"
  452. #define LCD_STR_N5 "6"
  453. #define LCD_STR_N6 "7"
  454. #define LCD_STR_N7 "8"
  455. #endif
  456. #define LCD_STR_E0 "E" LCD_STR_N0
  457. #define LCD_STR_E1 "E" LCD_STR_N1
  458. #define LCD_STR_E2 "E" LCD_STR_N2
  459. #define LCD_STR_E3 "E" LCD_STR_N3
  460. #define LCD_STR_E4 "E" LCD_STR_N4
  461. #define LCD_STR_E5 "E" LCD_STR_N5
  462. #define LCD_STR_E6 "E" LCD_STR_N6
  463. #define LCD_STR_E7 "E" LCD_STR_N7
  464. // Include localized LCD Menu Messages
  465. #define LANGUAGE_DATA_INCL_(M) STRINGIFY_(fontdata/langdata_##M.h)
  466. #define LANGUAGE_DATA_INCL(M) LANGUAGE_DATA_INCL_(M)
  467. #define LANGUAGE_INCL_(M) STRINGIFY_(../lcd/language/language_##M.h)
  468. #define LANGUAGE_INCL(M) LANGUAGE_INCL_(M)
  469. // Use superscripts, if possible. Evaluated at point of use.
  470. #define SUPERSCRIPT_TWO TERN(NOT_EXTENDED_ISO10646_1_5X7, "^2", "²")
  471. #define SUPERSCRIPT_THREE TERN(NOT_EXTENDED_ISO10646_1_5X7, "^3", "³")
  472. #include "multi_language.h" // Allow multiple languages
  473. #include "../lcd/language/language_en.h"
  474. #include LANGUAGE_INCL(LCD_LANGUAGE)
  475. #include LANGUAGE_INCL(LCD_LANGUAGE_2)
  476. #include LANGUAGE_INCL(LCD_LANGUAGE_3)
  477. #include LANGUAGE_INCL(LCD_LANGUAGE_4)
  478. #include LANGUAGE_INCL(LCD_LANGUAGE_5)
  479. #if NONE(DISPLAY_CHARSET_ISO10646_1, \
  480. DISPLAY_CHARSET_ISO10646_5, \
  481. DISPLAY_CHARSET_ISO10646_KANA, \
  482. DISPLAY_CHARSET_ISO10646_GREEK, \
  483. DISPLAY_CHARSET_ISO10646_CN, \
  484. DISPLAY_CHARSET_ISO10646_TR, \
  485. DISPLAY_CHARSET_ISO10646_PL, \
  486. DISPLAY_CHARSET_ISO10646_CZ, \
  487. DISPLAY_CHARSET_ISO10646_SK)
  488. #define DISPLAY_CHARSET_ISO10646_1 // use the better font on full graphic displays.
  489. #endif