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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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. #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 http://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. // it Italian
  55. // jp_kana Japanese
  56. // ko_KR Korean (South Korea)
  57. // nl Dutch
  58. // pl Polish
  59. // pt Portuguese
  60. // pt_br Portuguese (Brazilian)
  61. // ru Russian
  62. // sk Slovak
  63. // tr Turkish
  64. // uk Ukrainian
  65. // vi Vietnamese
  66. // zh_CN Chinese (Simplified)
  67. // zh_TW Chinese (Traditional)
  68. #ifdef DEFAULT_SOURCE_CODE_URL
  69. #undef SOURCE_CODE_URL
  70. #define SOURCE_CODE_URL DEFAULT_SOURCE_CODE_URL
  71. #endif
  72. #ifdef CUSTOM_MACHINE_NAME
  73. #undef MACHINE_NAME
  74. #define MACHINE_NAME CUSTOM_MACHINE_NAME
  75. #else
  76. #ifdef DEFAULT_MACHINE_NAME
  77. #undef MACHINE_NAME
  78. #define MACHINE_NAME DEFAULT_MACHINE_NAME
  79. #endif
  80. #endif
  81. #ifndef MACHINE_UUID
  82. #define MACHINE_UUID DEFAULT_MACHINE_UUID
  83. #endif
  84. #define MARLIN_WEBSITE_URL "http://marlinfw.org"
  85. //#if !defined(STRING_SPLASH_LINE3) && defined(WEBSITE_URL)
  86. // #define STRING_SPLASH_LINE3 WEBSITE_URL
  87. //#endif
  88. //
  89. // Common Serial Console Messages
  90. // Don't change these strings because serial hosts look for them.
  91. //
  92. #define STR_ENQUEUEING "enqueueing \""
  93. #define STR_POWERUP "PowerUp"
  94. #define STR_EXTERNAL_RESET " External Reset"
  95. #define STR_BROWNOUT_RESET " Brown out Reset"
  96. #define STR_WATCHDOG_RESET " Watchdog Reset"
  97. #define STR_SOFTWARE_RESET " Software Reset"
  98. #define STR_AUTHOR " | Author: "
  99. #define STR_CONFIGURATION_VER " Last Updated: "
  100. #define STR_FREE_MEMORY " Free Memory: "
  101. #define STR_PLANNER_BUFFER_BYTES " PlannerBufferBytes: "
  102. #define STR_OK "ok"
  103. #define STR_WAIT "wait"
  104. #define STR_STATS "Stats: "
  105. #define STR_FILE_SAVED "Done saving file."
  106. #define STR_ERR_LINE_NO "Line Number is not Last Line Number+1, Last Line: "
  107. #define STR_ERR_CHECKSUM_MISMATCH "checksum mismatch, Last Line: "
  108. #define STR_ERR_NO_CHECKSUM "No Checksum with line number, Last Line: "
  109. #define STR_FILE_PRINTED "Done printing file"
  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_M115_REPORT "FIRMWARE_NAME:Marlin " DETAILED_BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID
  117. #define STR_COUNT_X " Count X:"
  118. #define STR_COUNT_A " Count A:"
  119. #define STR_WATCHDOG_FIRED "Watchdog timeout. Reset required."
  120. #define STR_ERR_KILLED "Printer halted. kill() called!"
  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_BUSY_PROCESSING "busy: processing"
  123. #define STR_BUSY_PAUSED_FOR_USER "busy: paused for user"
  124. #define STR_BUSY_PAUSED_FOR_INPUT "busy: paused for input"
  125. #define STR_Z_MOVE_COMP "Z_move_comp"
  126. #define STR_RESEND "Resend: "
  127. #define STR_UNKNOWN_COMMAND "Unknown command: \""
  128. #define STR_ACTIVE_EXTRUDER "Active Extruder: "
  129. #define STR_X_MIN "x_min"
  130. #define STR_X_MAX "x_max"
  131. #define STR_X2_MIN "x2_min"
  132. #define STR_X2_MAX "x2_max"
  133. #define STR_Y_MIN "y_min"
  134. #define STR_Y_MAX "y_max"
  135. #define STR_Y2_MIN "y2_min"
  136. #define STR_Y2_MAX "y2_max"
  137. #define STR_Z_MIN "z_min"
  138. #define STR_Z_MAX "z_max"
  139. #define STR_Z2_MIN "z2_min"
  140. #define STR_Z2_MAX "z2_max"
  141. #define STR_Z3_MIN "z3_min"
  142. #define STR_Z3_MAX "z3_max"
  143. #define STR_Z4_MIN "z4_min"
  144. #define STR_Z4_MAX "z4_max"
  145. #define STR_Z_PROBE "z_probe"
  146. #define STR_FILAMENT_RUNOUT_SENSOR "filament"
  147. #define STR_PROBE_OFFSET "Probe Offset"
  148. #define STR_SKEW_MIN "min_skew_factor: "
  149. #define STR_SKEW_MAX "max_skew_factor: "
  150. #define STR_ERR_MATERIAL_INDEX "M145 S<index> out of range (0-1)"
  151. #define STR_ERR_M421_PARAMETERS "M421 incorrect parameter usage"
  152. #define STR_ERR_BAD_PLANE_MODE "G5 requires XY plane mode"
  153. #define STR_ERR_MESH_XY "Mesh point cannot be resolved"
  154. #define STR_ERR_ARC_ARGS "G2/G3 bad parameters"
  155. #define STR_ERR_PROTECTED_PIN "Protected Pin"
  156. #define STR_ERR_M420_FAILED "Failed to enable Bed Leveling"
  157. #define STR_ERR_M428_TOO_FAR "Too far from reference point"
  158. #define STR_ERR_M303_DISABLED "PIDTEMP disabled"
  159. #define STR_M119_REPORT "Reporting endstop status"
  160. #define STR_ON "ON"
  161. #define STR_OFF "OFF"
  162. #define STR_ENDSTOP_HIT "TRIGGERED"
  163. #define STR_ENDSTOP_OPEN "open"
  164. #define STR_HOTEND_OFFSET "Hotend offsets:"
  165. #define STR_DUPLICATION_MODE "Duplication mode: "
  166. #define STR_SOFT_ENDSTOPS "Soft endstops: "
  167. #define STR_SOFT_MIN " Min: "
  168. #define STR_SOFT_MAX " Max: "
  169. #define STR_SAVED_POS "Position saved"
  170. #define STR_RESTORING_POS "Restoring position"
  171. #define STR_INVALID_POS_SLOT "Invalid slot. Total: "
  172. #define STR_SD_CANT_OPEN_SUBDIR "Cannot open subdir "
  173. #define STR_SD_INIT_FAIL "SD init fail"
  174. #define STR_SD_VOL_INIT_FAIL "volume.init failed"
  175. #define STR_SD_OPENROOT_FAIL "openRoot failed"
  176. #define STR_SD_CARD_OK "SD card ok"
  177. #define STR_SD_WORKDIR_FAIL "workDir open failed"
  178. #define STR_SD_OPEN_FILE_FAIL "open failed, File: "
  179. #define STR_SD_FILE_OPENED "File opened: "
  180. #define STR_SD_SIZE " Size: "
  181. #define STR_SD_FILE_SELECTED "File selected"
  182. #define STR_SD_WRITE_TO_FILE "Writing to file: "
  183. #define STR_SD_PRINTING_BYTE "SD printing byte "
  184. #define STR_SD_NOT_PRINTING "Not SD printing"
  185. #define STR_SD_ERR_WRITE_TO_FILE "error writing to file"
  186. #define STR_SD_ERR_READ "SD read error"
  187. #define STR_SD_CANT_ENTER_SUBDIR "Cannot enter subdir: "
  188. #define STR_ENDSTOPS_HIT "endstops hit: "
  189. #define STR_ERR_COLD_EXTRUDE_STOP " cold extrusion prevented"
  190. #define STR_ERR_LONG_EXTRUDE_STOP " too long extrusion prevented"
  191. #define STR_ERR_HOTEND_TOO_COLD "Hotend too cold"
  192. #define STR_ERR_Z_HOMING_SER "Home XY first"
  193. #define STR_ERR_EEPROM_WRITE "Error writing to EEPROM!"
  194. #define STR_FILAMENT_CHANGE_HEAT_LCD "Press button to heat nozzle"
  195. #define STR_FILAMENT_CHANGE_INSERT_LCD "Insert filament and press button"
  196. #define STR_FILAMENT_CHANGE_WAIT_LCD "Press button to resume"
  197. #define STR_FILAMENT_CHANGE_HEAT_M108 "Send M108 to heat nozzle"
  198. #define STR_FILAMENT_CHANGE_INSERT_M108 "Insert filament and send M108"
  199. #define STR_FILAMENT_CHANGE_WAIT_M108 "Send M108 to resume"
  200. #define STR_STOP_BLTOUCH "!! STOP called because of BLTouch error - restart with M999"
  201. #define STR_STOP_UNHOMED "!! STOP called because of unhomed error - restart with M999"
  202. #define STR_KILL_INACTIVE_TIME "!! KILL caused by too much inactive time - current command: "
  203. #define STR_KILL_BUTTON "!! KILL caused by KILL button/pin"
  204. // temperature.cpp strings
  205. #define STR_PID_AUTOTUNE_PREFIX "PID Autotune"
  206. #define STR_PID_AUTOTUNE_START STR_PID_AUTOTUNE_PREFIX " start"
  207. #define STR_PID_AUTOTUNE_FAILED STR_PID_AUTOTUNE_PREFIX " failed!"
  208. #define STR_PID_BAD_EXTRUDER_NUM STR_PID_AUTOTUNE_FAILED " Bad extruder number"
  209. #define STR_PID_TEMP_TOO_HIGH STR_PID_AUTOTUNE_FAILED " Temperature too high"
  210. #define STR_PID_TIMEOUT STR_PID_AUTOTUNE_FAILED " timeout"
  211. #define STR_BIAS " bias: "
  212. #define STR_D_COLON " d: "
  213. #define STR_T_MIN " min: "
  214. #define STR_T_MAX " max: "
  215. #define STR_KU " Ku: "
  216. #define STR_TU " Tu: "
  217. #define STR_CLASSIC_PID " Classic PID "
  218. #define STR_KP " Kp: "
  219. #define STR_KI " Ki: "
  220. #define STR_KD " Kd: "
  221. #define STR_PID_AUTOTUNE_FINISHED STR_PID_AUTOTUNE_PREFIX " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
  222. #define STR_PID_DEBUG " PID_DEBUG "
  223. #define STR_PID_DEBUG_INPUT ": Input "
  224. #define STR_PID_DEBUG_OUTPUT " Output "
  225. #define STR_PID_DEBUG_PTERM " pTerm "
  226. #define STR_PID_DEBUG_ITERM " iTerm "
  227. #define STR_PID_DEBUG_DTERM " dTerm "
  228. #define STR_PID_DEBUG_CTERM " cTerm "
  229. #define STR_INVALID_EXTRUDER_NUM " - Invalid extruder number !"
  230. #define STR_HEATER_BED "bed"
  231. #define STR_HEATER_CHAMBER "chamber"
  232. #define STR_STOPPED_HEATER ", system stopped! Heater_ID: "
  233. #define STR_REDUNDANCY "Heater switched off. Temperature difference between temp sensors is too high !"
  234. #define STR_T_HEATING_FAILED "Heating failed"
  235. #define STR_T_THERMAL_RUNAWAY "Thermal Runaway"
  236. #define STR_T_MAXTEMP "MAXTEMP triggered"
  237. #define STR_T_MINTEMP "MINTEMP triggered"
  238. #define STR_ERR_PROBING_FAILED "Probing Failed"
  239. #define STR_ZPROBE_OUT_SER "Z Probe Past Bed"
  240. // Debug
  241. #define STR_DEBUG_PREFIX "DEBUG:"
  242. #define STR_DEBUG_OFF "off"
  243. #define STR_DEBUG_ECHO "ECHO"
  244. #define STR_DEBUG_INFO "INFO"
  245. #define STR_DEBUG_ERRORS "ERRORS"
  246. #define STR_DEBUG_DRYRUN "DRYRUN"
  247. #define STR_DEBUG_COMMUNICATION "COMMUNICATION"
  248. #define STR_DEBUG_LEVELING "LEVELING"
  249. // LCD Menu Messages
  250. #define LANGUAGE_DATA_INCL_(M) STRINGIFY_(fontdata/langdata_##M.h)
  251. #define LANGUAGE_DATA_INCL(M) LANGUAGE_DATA_INCL_(M)
  252. #define LANGUAGE_INCL_(M) STRINGIFY_(../lcd/language/language_##M.h)
  253. #define LANGUAGE_INCL(M) LANGUAGE_INCL_(M)
  254. #define STR_X "X"
  255. #define STR_Y "Y"
  256. #define STR_Z "Z"
  257. #define STR_E "E"
  258. #if IS_KINEMATIC
  259. #define STR_A "A"
  260. #define STR_B "B"
  261. #define STR_C "C"
  262. #else
  263. #define STR_A "X"
  264. #define STR_B "Y"
  265. #define STR_C "Z"
  266. #endif
  267. #define STR_X2 "X2"
  268. #define STR_Y2 "Y2"
  269. #define STR_Z2 "Z2"
  270. #define STR_Z3 "Z3"
  271. #define STR_Z4 "Z4"
  272. #define LCD_STR_A STR_A
  273. #define LCD_STR_B STR_B
  274. #define LCD_STR_C STR_C
  275. #define LCD_STR_E STR_E
  276. #if HAS_CHARACTER_LCD
  277. // Custom characters defined in the first 8 characters of the LCD
  278. #define LCD_STR_BEDTEMP "\x00" // Print only as a char. This will have 'unexpected' results when used in a string!
  279. #define LCD_STR_DEGREE "\x01"
  280. #define LCD_STR_THERMOMETER "\x02" // Still used with string concatenation
  281. #define LCD_STR_UPLEVEL "\x03"
  282. #define LCD_STR_REFRESH "\x04"
  283. #define LCD_STR_FOLDER "\x05"
  284. #define LCD_STR_FEEDRATE "\x06"
  285. #define LCD_STR_CLOCK "\x07"
  286. #define LCD_STR_ARROW_RIGHT ">" /* from the default character set */
  287. #else
  288. //
  289. // Custom characters from Marlin_symbols.fon which was merged into ISO10646-0-3.bdf
  290. // \x00 intentionally skipped to avoid problems in strings
  291. //
  292. #define LCD_STR_REFRESH "\x01"
  293. #define LCD_STR_FOLDER "\x02"
  294. #define LCD_STR_ARROW_RIGHT "\x03"
  295. #define LCD_STR_UPLEVEL "\x04"
  296. #define LCD_STR_CLOCK "\x05"
  297. #define LCD_STR_FEEDRATE "\x06"
  298. #define LCD_STR_BEDTEMP "\x07"
  299. #define LCD_STR_THERMOMETER "\x08"
  300. #define LCD_STR_DEGREE "\x09"
  301. #define LCD_STR_SPECIAL_MAX '\x09'
  302. // Maximum here is 0x1F because 0x20 is ' ' (space) and the normal charsets begin.
  303. // Better stay below 0x10 because DISPLAY_CHARSET_HD44780_WESTERN begins here.
  304. // Symbol characters
  305. #define LCD_STR_FILAM_DIA "\xF8"
  306. #define LCD_STR_FILAM_MUL "\xA4"
  307. #endif
  308. /**
  309. * Tool indexes for LCD display only
  310. *
  311. * By convention the LCD shows "E1" for the first extruder.
  312. * However, internal to Marlin E0/T0 is the first tool, and
  313. * most board silkscreens say "E0." Zero-based labels will
  314. * make these indexes consistent but this defies expectation.
  315. *
  316. */
  317. #if ENABLED(NUMBER_TOOLS_FROM_0)
  318. #define LCD_FIRST_TOOL '0'
  319. #define LCD_STR_N0 "0"
  320. #define LCD_STR_N1 "1"
  321. #define LCD_STR_N2 "2"
  322. #define LCD_STR_N3 "3"
  323. #define LCD_STR_N4 "4"
  324. #define LCD_STR_N5 "5"
  325. #define LCD_STR_N6 "6"
  326. #define LCD_STR_N7 "7"
  327. #else
  328. #define LCD_FIRST_TOOL '1'
  329. #define LCD_STR_N0 "1"
  330. #define LCD_STR_N1 "2"
  331. #define LCD_STR_N2 "3"
  332. #define LCD_STR_N3 "4"
  333. #define LCD_STR_N4 "5"
  334. #define LCD_STR_N5 "6"
  335. #define LCD_STR_N6 "7"
  336. #define LCD_STR_N7 "8"
  337. #endif
  338. #define LCD_STR_E0 "E" LCD_STR_N0
  339. #define LCD_STR_E1 "E" LCD_STR_N1
  340. #define LCD_STR_E2 "E" LCD_STR_N2
  341. #define LCD_STR_E3 "E" LCD_STR_N3
  342. #define LCD_STR_E4 "E" LCD_STR_N4
  343. #define LCD_STR_E5 "E" LCD_STR_N5
  344. #define LCD_STR_E6 "E" LCD_STR_N6
  345. #define LCD_STR_E7 "E" LCD_STR_N7
  346. #include "multi_language.h" // Allow multiple languages
  347. #include "../lcd/language/language_en.h"
  348. #include LANGUAGE_INCL(LCD_LANGUAGE)
  349. #include LANGUAGE_INCL(LCD_LANGUAGE_2)
  350. #include LANGUAGE_INCL(LCD_LANGUAGE_3)
  351. #include LANGUAGE_INCL(LCD_LANGUAGE_4)
  352. #include LANGUAGE_INCL(LCD_LANGUAGE_5)
  353. #if NONE(DISPLAY_CHARSET_ISO10646_1, \
  354. DISPLAY_CHARSET_ISO10646_5, \
  355. DISPLAY_CHARSET_ISO10646_KANA, \
  356. DISPLAY_CHARSET_ISO10646_GREEK, \
  357. DISPLAY_CHARSET_ISO10646_CN, \
  358. DISPLAY_CHARSET_ISO10646_TR, \
  359. DISPLAY_CHARSET_ISO10646_PL, \
  360. DISPLAY_CHARSET_ISO10646_CZ, \
  361. DISPLAY_CHARSET_ISO10646_SK)
  362. #define DISPLAY_CHARSET_ISO10646_1 // use the better font on full graphic displays.
  363. #endif