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.

config.h 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /************
  2. * config.h *
  3. ************/
  4. /****************************************************************************
  5. * Written By Marcio Teixeira 2018 - Aleph Objects, Inc. *
  6. * *
  7. * This program is free software: you can redistribute it and/or modify *
  8. * it under the terms of the GNU General Public License as published by *
  9. * the Free Software Foundation, either version 3 of the License, or *
  10. * (at your option) any later version. *
  11. * *
  12. * This program is distributed in the hope that it will be useful, *
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  15. * GNU General Public License for more details. *
  16. * *
  17. * To view a copy of the GNU General Public License, go to the following *
  18. * location: <http://www.gnu.org/licenses/>. *
  19. ****************************************************************************/
  20. #pragma once
  21. #include "compat.h"
  22. // Define the display board used (see "ftdi_eve_boards.h" for definitions)
  23. //#define LCD_FTDI_VM800B35A // FTDI 3.5" 320x240 with FT800
  24. //#define LCD_4DSYSTEMS_4DLCD_FT843 // 4D Systems 4.3" 480x272
  25. //#define LCD_HAOYU_FT800CB // Haoyu with 4.3" or 5" 480x272
  26. //#define LCD_HAOYU_FT810CB // Haoyu with 5" 800x480
  27. //#define LCD_ALEPHOBJECTS_CLCD_UI // Aleph Objects Color LCD User Interface
  28. // Leave the following commented out to use a board's default resolution.
  29. // If you have changed the LCD panel, you may override the resolution
  30. // below (see "ftdi_eve_resolutions.h" for definitions):
  31. //#define TOUCH_UI_320x240
  32. //#define TOUCH_UI_480x272
  33. //#define TOUCH_UI_800x480
  34. // Define the printer interface or pins used (see "ui_pin_mappings.h" for definitions):
  35. //#define CR10_TFT_PINMAP
  36. //#define AO_EXP1_DEPRECATED_PINMAP // UltraLCD EXP1 connector, old AlephObject's wiring
  37. //#define AO_EXP1_PINMAP // UltraLCD EXP1 connector, new AlephObject's wiring
  38. //#define AO_EXP2_PINMAP // UltraLCD EXP2 connector, new AlephObject's wiring
  39. //#define OTHER_PIN_LAYOUT
  40. // Otherwise. Define all the pins manually:
  41. #ifdef OTHER_PIN_LAYOUT
  42. // Select interfacing pins, the following pin specifiers are supported:
  43. //
  44. // ARDUINO_DIGITAL_1 - Arduino pin via digitalWrite/digitalRead
  45. // AVR_A1 - Fast AVR port access via PORTA/PINA/DDRA
  46. // 1 - When compiling Marlin, use Marlin pin IDs.
  47. // The pins for CS and MOD_RESET (PD) must be chosen.
  48. #define CLCD_MOD_RESET 9
  49. #define CLCD_SPI_CS 10
  50. // If using software SPI, specify pins for SCLK, MOSI, MISO
  51. //#define CLCD_USE_SOFT_SPI
  52. #ifdef CLCD_USE_SOFT_SPI
  53. #define CLCD_SOFT_SPI_MOSI 11
  54. #define CLCD_SOFT_SPI_MISO 12
  55. #define CLCD_SOFT_SPI_SCLK 13
  56. #endif
  57. #endif
  58. // Defines how to orient the display. An inverted (i.e. upside-down) display
  59. // is supported on the FT800. The FT810 or better also support a portrait
  60. // and mirrored orientation.
  61. //#define TOUCH_UI_INVERTED
  62. //#define TOUCH_UI_PORTRAIT
  63. //#define TOUCH_UI_MIRRORED
  64. // Enable UTF8 processing and rendering. Unsupported characters
  65. // will be shown as '?'.
  66. //#define TOUCH_UI_USE_UTF8
  67. #ifdef TOUCH_UI_USE_UTF8
  68. // Western accents support. These accented characters use
  69. // combined bitmaps and require relatively little storage.
  70. #define TOUCH_UI_UTF8_WESTERN_CHARSET
  71. #ifdef TOUCH_UI_UTF8_WESTERN_CHARSET
  72. // Additional character groups. These characters require
  73. // full bitmaps and take up considerable storage:
  74. //#define TOUCH_UI_UTF8_SUPERSCRIPTS // ¹ ² ³
  75. //#define TOUCH_UI_UTF8_COPYRIGHT // © ®
  76. //#define TOUCH_UI_UTF8_GERMANIC // ß
  77. //#define TOUCH_UI_UTF8_SCANDINAVIAN // Æ Ð Ø Þ æ ð ø þ
  78. //#define TOUCH_UI_UTF8_PUNCTUATION // « » ¿ ¡
  79. //#define TOUCH_UI_UTF8_CURRENCY // ¢ £ ¤ ¥
  80. //#define TOUCH_UI_UTF8_ORDINALS // º ª
  81. //#define TOUCH_UI_UTF8_MATHEMATICS // ± × ÷
  82. //#define TOUCH_UI_UTF8_FRACTIONS // ¼ ½ ¾
  83. //#define TOUCH_UI_UTF8_SYMBOLS // µ ¶ ¦ § ¬
  84. #endif
  85. #endif
  86. // When labels do not fit buttons, use smaller font
  87. //#define TOUCH_UI_FIT_TEXT
  88. // Enable support for selection of languages at run-time
  89. // (otherwise will use the value of LCD_LANGUAGE)
  90. //#define TOUCH_UI_LANGUAGE_MENU
  91. // Use a numeric passcode for "Parental lock".
  92. // This is a recommended for smaller displays.
  93. //#define TOUCH_UI_PASSCODE
  94. // The timeout (in ms) to return to the status screen from sub-menus
  95. //#define LCD_TIMEOUT_TO_STATUS 15000
  96. // Enable this to debug the event framework
  97. //#define TOUCH_UI_DEBUG
  98. // Enable the developer's menu and screens
  99. //#define DEVELOPER_SCREENS
  100. // Sets the SPI speed in Hz
  101. #define SPI_FREQUENCY 8000000 >> SPI_SPEED