Advertisement
inmortalkaktus

Problema Marlin

Apr 17th, 2019
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 11.65 KB | None | 0 0
  1. //=============================================================================
  2. //============================= LCD and SD support ============================
  3. //=============================================================================
  4.  
  5. // @section lcd
  6.  
  7. /**
  8.  * LCD LANGUAGE
  9.  *
  10.  * Select the language to display on the LCD. These languages are available:
  11.  *
  12.  *    en, an, bg, ca, cn, cz, cz_utf8, de, el, el-gr, es, es_utf8,
  13.  *    eu, fi, fr, fr_utf8, gl, hr, it, kana, kana_utf8, nl, pl, pt,
  14.  *    pt_utf8, pt-br, pt-br_utf8, ru, sk_utf8, tr, uk, zh_CN, zh_TW, test
  15.  *
  16.  * :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cn':'Chinese', 'cz':'Czech', 'cz_utf8':'Czech (UTF8)', 'de':'German', 'el':'Greek', 'el-gr':'Greek (Greece)', 'es':'Spanish', 'es_utf8':'Spanish (UTF8)', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'fr_utf8':'French (UTF8)', 'gl':'Galician', 'hr':'Croatian', 'it':'Italian', 'kana':'Japanese', 'kana_utf8':'Japanese (UTF8)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt-br':'Portuguese (Brazilian)', 'pt-br_utf8':'Portuguese (Brazilian UTF8)', 'pt_utf8':'Portuguese (UTF8)', 'ru':'Russian', 'sk_utf8':'Slovak (UTF8)', 'tr':'Turkish', 'uk':'Ukrainian', 'zh_CN':'Chinese (Simplified)', 'zh_TW':'Chinese (Taiwan)', 'test':'TEST' }
  17.  */
  18. #define LCD_LANGUAGE es
  19.  
  20. /**
  21.  * LCD Character Set
  22.  *
  23.  * Note: This option is NOT applicable to Graphical Displays.
  24.  *
  25.  * All character-based LCDs provide ASCII plus one of these
  26.  * language extensions:
  27.  *
  28.  *  - JAPANESE ... the most common
  29.  *  - WESTERN  ... with more accented characters
  30.  *  - CYRILLIC ... for the Russian language
  31.  *
  32.  * To determine the language extension installed on your controller:
  33.  *
  34.  *  - Compile and upload with LCD_LANGUAGE set to 'test'
  35.  *  - Click the controller to view the LCD menu
  36.  *  - The LCD will display Japanese, Western, or Cyrillic text
  37.  *
  38.  * See http://marlinfw.org/docs/development/lcd_language.html
  39.  *
  40.  * :['JAPANESE', 'WESTERN', 'CYRILLIC']
  41.  */
  42. #define DISPLAY_CHARSET_HD44780 JAPANESE
  43.  
  44. /**
  45.  * SD CARD
  46.  *
  47.  * SD Card support is disabled by default. If your controller has an SD slot,
  48.  * you must uncomment the following option or it won't work.
  49.  *
  50.  */
  51. #define SDSUPPORT
  52.  
  53. /**
  54.  * SD CARD: SPI SPEED
  55.  *
  56.  * Enable one of the following items for a slower SPI transfer speed.
  57.  * This may be required to resolve "volume init" errors.
  58.  */
  59. //#define SPI_SPEED SPI_HALF_SPEED
  60. //#define SPI_SPEED SPI_QUARTER_SPEED
  61. //#define SPI_SPEED SPI_EIGHTH_SPEED
  62.  
  63. /**
  64.  * SD CARD: ENABLE CRC
  65.  *
  66.  * Use CRC checks and retries on the SD communication.
  67.  */
  68. #define SD_CHECK_AND_RETRY
  69.  
  70. /**
  71.  * LCD Menu Items
  72.  *
  73.  * Disable all menus and only display the Status Screen, or
  74.  * just remove some extraneous menu items to recover space.
  75.  */
  76. //#define NO_LCD_MENUS
  77. //#define SLIM_LCD_MENUS
  78.  
  79. //
  80. // ENCODER SETTINGS
  81. //
  82. // This option overrides the default number of encoder pulses needed to
  83. // produce one step. Should be increased for high-resolution encoders.
  84. //
  85. //#define ENCODER_PULSES_PER_STEP 4
  86.  
  87. //
  88. // Use this option to override the number of step signals required to
  89. // move between next/prev menu items.
  90. //
  91. //#define ENCODER_STEPS_PER_MENU_ITEM 1
  92.  
  93. /**
  94.  * Encoder Direction Options
  95.  *
  96.  * Test your encoder's behavior first with both options disabled.
  97.  *
  98.  *  Reversed Value Edit and Menu Nav? Enable REVERSE_ENCODER_DIRECTION.
  99.  *  Reversed Menu Navigation only?    Enable REVERSE_MENU_DIRECTION.
  100.  *  Reversed Value Editing only?      Enable BOTH options.
  101.  */
  102.  
  103. //
  104. // This option reverses the encoder direction everywhere.
  105. //
  106. //  Set this option if CLOCKWISE causes values to DECREASE
  107. //
  108. //#define REVERSE_ENCODER_DIRECTION
  109.  
  110. //
  111. // This option reverses the encoder direction for navigating LCD menus.
  112. //
  113. //  If CLOCKWISE normally moves DOWN this makes it go UP.
  114. //  If CLOCKWISE normally moves UP this makes it go DOWN.
  115. //
  116. //#define REVERSE_MENU_DIRECTION
  117.  
  118. //
  119. // Individual Axis Homing
  120. //
  121. // Add individual axis homing items (Home X, Home Y, and Home Z) to the LCD menu.
  122. //
  123. //#define INDIVIDUAL_AXIS_HOMING_MENU
  124.  
  125. //
  126. // SPEAKER/BUZZER
  127. //
  128. // If you have a speaker that can produce tones, enable it here.
  129. // By default Marlin assumes you have a buzzer with a fixed frequency.
  130. //
  131. //#define SPEAKER
  132.  
  133. //
  134. // The duration and frequency for the UI feedback sound.
  135. // Set these to 0 to disable audio feedback in the LCD menus.
  136. //
  137. // Note: Test audio output with the G-Code:
  138. //  M300 S<frequency Hz> P<duration ms>
  139. //
  140. //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 2
  141. //#define LCD_FEEDBACK_FREQUENCY_HZ 5000
  142.  
  143. //=============================================================================
  144. //======================== LCD / Controller Selection =========================
  145. //========================   (Character-based LCDs)   =========================
  146. //=============================================================================
  147.  
  148. //
  149. // RepRapDiscount Smart Controller.
  150. // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
  151. //
  152. // Note: Usually sold with a white PCB.
  153. //
  154. //#define REPRAP_DISCOUNT_SMART_CONTROLLER
  155.  
  156. //
  157. // ULTIMAKER Controller.
  158. //
  159. //#define ULTIMAKERCONTROLLER
  160.  
  161. //
  162. // ULTIPANEL as seen on Thingiverse.
  163. //
  164. //#define ULTIPANEL
  165.  
  166. //
  167. // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
  168. // http://reprap.org/wiki/PanelOne
  169. //
  170. //#define PANEL_ONE
  171.  
  172. //
  173. // GADGETS3D G3D LCD/SD Controller
  174. // http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
  175. //
  176. // Note: Usually sold with a blue PCB.
  177. //
  178. //#define G3D_PANEL
  179.  
  180. //
  181. // RigidBot Panel V1.0
  182. // http://www.inventapart.com/
  183. //
  184. //#define RIGIDBOT_PANEL
  185.  
  186. //
  187. // Makeboard 3D Printer Parts 3D Printer Mini Display 1602 Mini Controller
  188. // https://www.aliexpress.com/item/Micromake-Makeboard-3D-Printer-Parts-3D-Printer-Mini-Display-1602-Mini-Controller-Compatible-with-Ramps-1/32765887917.html
  189. //
  190. //#define MAKEBOARD_MINI_2_LINE_DISPLAY_1602
  191.  
  192. //
  193. // ANET and Tronxy 20x4 Controller
  194. //
  195. #define ZONESTAR_LCD              // Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
  196.                                   // This LCD is known to be susceptible to electrical interference
  197.                                   // which scrambles the display.  Pressing any button clears it up.
  198.                                   // This is a LCD2004 display with 5 analog buttons.
  199.  
  200. //
  201. // Generic 16x2, 16x4, 20x2, or 20x4 character-based LCD.
  202. //
  203. //#define ULTRA_LCD
  204.  
  205. //=============================================================================
  206. //======================== LCD / Controller Selection =========================
  207. //=====================   (I2C and Shift-Register LCDs)   =====================
  208. //=============================================================================
  209.  
  210. //
  211. // CONTROLLER TYPE: I2C
  212. //
  213. // Note: These controllers require the installation of Arduino's LiquidCrystal_I2C
  214. // library. For more info: https://github.com/kiyoshigawa/LiquidCrystal_I2C
  215. //
  216.  
  217. //
  218. // Elefu RA Board Control Panel
  219. // http://www.elefu.com/index.php?route=product/product&product_id=53
  220. //
  221. //#define RA_CONTROL_PANEL
  222.  
  223. //
  224. // Sainsmart (YwRobot) LCD Displays
  225. //
  226. // These require F.Malpartida's LiquidCrystal_I2C library
  227. // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
  228. //
  229. //#define LCD_SAINSMART_I2C_1602
  230. //#define LCD_SAINSMART_I2C_2004
  231.  
  232. //
  233. // Generic LCM1602 LCD adapter
  234. //
  235. //#define LCM1602
  236.  
  237. //
  238. // PANELOLU2 LCD with status LEDs,
  239. // separate encoder and click inputs.
  240. //
  241. // Note: This controller requires Arduino's LiquidTWI2 library v1.2.3 or later.
  242. // For more info: https://github.com/lincomatic/LiquidTWI2
  243. //
  244. // Note: The PANELOLU2 encoder click input can either be directly connected to
  245. // a pin (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).
  246. //
  247. //#define LCD_I2C_PANELOLU2
  248.  
  249. //
  250. // Panucatt VIKI LCD with status LEDs,
  251. // integrated click & L/R/U/D buttons, separate encoder inputs.
  252. //
  253. //#define LCD_I2C_VIKI
  254.  
  255. //
  256. // CONTROLLER TYPE: Shift register panels
  257. //
  258.  
  259. //
  260. // 2 wire Non-latching LCD SR from https://goo.gl/aJJ4sH
  261. // LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
  262. //
  263. //#define SAV_3DLCD
  264.  
  265. //=============================================================================
  266. //=======================   LCD / Controller Selection  =======================
  267. //=========================      (Graphical LCDs)      ========================
  268. //=============================================================================
  269.  
  270. //
  271. // CONTROLLER TYPE: Graphical 128x64 (DOGM)
  272. //
  273. // IMPORTANT: The U8glib library is required for Graphical Display!
  274. //            https://github.com/olikraus/U8glib_Arduino
  275. //
  276.  
  277. //
  278. // RepRapDiscount FULL GRAPHIC Smart Controller
  279. // http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
  280. //
  281. // Note: Details on connecting to the Anet V1.0 controller are in the file pins_ANET_10.h
  282. //
  283. #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  284.  
  285. //
  286. // ReprapWorld Graphical LCD
  287. // https://reprapworld.com/?products_details&products_id/1218
  288. //
  289. //#define REPRAPWORLD_GRAPHICAL_LCD
  290.  
  291. //
  292. // Activate one of these if you have a Panucatt Devices
  293. // Viki 2.0 or mini Viki with Graphic LCD
  294. // http://panucatt.com
  295. //
  296. //#define VIKI2
  297. //#define miniVIKI
  298.  
  299. //
  300. // MakerLab Mini Panel with graphic
  301. // controller and SD support - http://reprap.org/wiki/Mini_panel
  302. //
  303. //#define MINIPANEL
  304.  
  305. //
  306. // MaKr3d Makr-Panel with graphic controller and SD support.
  307. // http://reprap.org/wiki/MaKr3d_MaKrPanel
  308. //
  309. //#define MAKRPANEL
  310.  
  311. //
  312. // Adafruit ST7565 Full Graphic Controller.
  313. // https://github.com/eboston/Adafruit-ST7565-Full-Graphic-Controller/
  314. //
  315. //#define ELB_FULL_GRAPHIC_CONTROLLER
  316.  
  317. //
  318. // BQ LCD Smart Controller shipped by
  319. // default with the BQ Hephestos 2 and Witbox 2.
  320. //
  321. //#define BQ_LCD_SMART_CONTROLLER
  322.  
  323. //
  324. // Cartesio UI
  325. // http://mauk.cc/webshop/cartesio-shop/electronics/user-interface
  326. //
  327. //#define CARTESIO_UI
  328.  
  329. //
  330. // LCD for Melzi Card with Graphical LCD
  331. //
  332. //#define LCD_FOR_MELZI
  333.  
  334. //
  335. // SSD1306 OLED full graphics generic display
  336. //
  337. //#define U8GLIB_SSD1306
  338.  
  339. //
  340. // SAV OLEd LCD module support using either SSD1306 or SH1106 based LCD modules
  341. //
  342. //#define SAV_3DGLCD
  343. #if ENABLED(SAV_3DGLCD)
  344.   //#define U8GLIB_SSD1306
  345.   #define U8GLIB_SH1106
  346. #endif
  347.  
  348. //
  349. // Original Ulticontroller from Ultimaker 2 printer with SSD1309 I2C display and encoder
  350. // https://github.com/Ultimaker/Ultimaker2/tree/master/1249_Ulticontroller_Board_(x1)
  351. //
  352. //#define ULTI_CONTROLLER
  353.  
  354. //
  355. // TinyBoy2 128x64 OLED / Encoder Panel
  356. //
  357. //#define OLED_PANEL_TINYBOY2
  358.  
  359. //
  360. // MKS MINI12864 with graphic controller and SD support
  361. // http://reprap.org/wiki/MKS_MINI_12864
  362. //
  363. //#define MKS_MINI_12864
  364.  
  365. //
  366. // Factory display for Creality CR-10
  367. // https://www.aliexpress.com/item/Universal-LCD-12864-3D-Printer-Display-Screen-With-Encoder-For-CR-10-CR-7-Model/32833148327.html
  368. //
  369. // This is RAMPS-compatible using a single 10-pin connector.
  370. // (For CR-10 owners who want to replace the Melzi Creality board but retain the display)
  371. //
  372. //#define CR10_STOCKDISPLAY
  373.  
  374. //
  375. // ANET and Tronxy Graphical Controller
  376. //
  377. //#define ANET_FULL_GRAPHICS_LCD  // Anet 128x64 full graphics lcd with rotary encoder as used on Anet A6
  378.                                   // A clone of the RepRapDiscount full graphics display but with
  379.                                   // different pins/wiring (see pins_ANET_10.h).
  380.  
  381. //
  382. // MKS OLED 1.3" 128 Γ— 64 FULL GRAPHICS CONTROLLER
  383. // http://reprap.org/wiki/MKS_12864OLED
  384. //
  385. // Tiny, but very sharp OLED display
  386. //
  387. //#define MKS_12864OLED          // Uses the SH1106 controller (default)
  388. //#define MKS_12864OLED_SSD1306  // Uses the SSD1306 controller
  389.  
  390. //
  391. // Silvergate GLCD controller
  392. // http://github.com/android444/Silvergate
  393. //
  394. //#define SILVER_GATE_GLCD_CONTROLLER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement