Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _CONFIGRATION_H_
- #define _CONFIGRATION_H_
- //===========================================================================
- //============================= General Settings ============================
- //===========================================================================
- /**
- * Default Mode
- *
- * Mode switching is still possible by by holding down the encorder for two seconds.
- *
- * Options:
- * ST7920_SPI // Marlin Mode
- * SERIAL_TSC // Touch Mode
- */
- #define DEFAULT_LCD_MODE SERIAL_TSC
- /**
- * Default Startup Knob LED Color (TFT35 E3)
- *
- * Options: 1: LED_OFF, 2: LED_WHITE, 3: LED_RED,
- * 4: LED_ORANGE, 5: LED_YELLOW, 6: LED_GREEN,
- * 7: LED_BLUE, 8: LED_INDIGO, 9: LED_VIOLET
- *
- * Default value is: 1 for LED_OFF
- */
- #define STARTUP_KNOB_LED_COLOR 2 // LED_OFF
- #define KEEP_KNOB_LED_COLOR_MARLIN_MODE // Keeps the LED state in Marlin Mode
- /**
- * Default LCD Brightness
- *
- * Options: LCD_5_PERCENT, LCD_10_PERCENT, LCD_20_PERCENT,
- * LCD_30_PERCENT, LCD_40_PERCENT, LCD_50_PERCENT,
- * LCD_60_PERCENT, LCD_70_PERCENT, LCD_80_PERCENT,
- * LCD_90_PERCENT, LCD_100_PERCENT
- */
- #ifdef LCD_LED_PIN
- #define DEFAULT_LCD_BRIGHTNESS LCD_100_PERCENT
- #endif
- //===========================================================================
- //=========================== Marlin Mode Settings ==========================
- //===========================================================================
- /**
- * Default Marlin Mode Background & Font Color Options
- *
- * These colors can be changed in Touch mode, but can also be set here.
- *
- * Options: BLACK, BLUE, BROWN, BRRED, CYAN, GBLUE, GRAY, GREEN, MAGENTA, RED, WHITE, YELLOW
- */
- #define ST7920_BKCOLOR BLACK
- #define ST7920_FNCOLOR GREEN
- /**
- * Text displayed at the top of the TFT in Marlin Mode.
- */
- //#define ST7920_BANNER_TEXT "LCD12864 Simulator"
- /**
- * Run Marlin Mode Fullscreen
- *
- * *** NOT RECOMMENDED FOR TFT24 ***
- */
- #define ST7920_FULLSCREEN
- /**
- * Clean Mode Switching Support
- *
- * Keep UART (Serial communication) alive in Marlin Mode
- *
- * Allow seamless OctoPrint UART connection to the TFT's UART/serial expansion port no matter which mode the TFT is in.
- *
- * *** ONLY SUPPORTED ON TFT24 V1.1, TFT35 V3.0, AND TFT28 V3.0 ***
- */
- #define CLEAN_MODE_SWITCHING_SUPPORT // Enable CLEAN MODE SWITCHING SUPPORT
- //===========================================================================
- //========================== Touch Mode Settings ============================
- //===========================================================================
- /**
- * This setting determines the communication speed of the printer.
- *
- * 250000 works in most cases, but you might try a lower speed if
- * you commonly experience drop-outs during host printing.
- * You may try up to 1000000 to speed up SD file transfer.
- *
- * :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000]
- */
- #define BAUDRATE 250000
- /**
- * Default Touch Mode Language
- *
- * Select the language to display on the LCD while in Touch Mode.
- *
- * Options: ARMENIAN, CHINESE, CZECH, DUTCH, ENGLISH, FRENCH, GERMAN, HUNGARY, ITALIAN, JAPANESE, POLISH, PORTUGUESE, RUSSIAN, SLOVAK, SPAIN
- */
- #define DEFAULT_LANGUAGE ENGLISH
- /**
- * Show bootscreen when starting up
- */
- #define SHOW_BTT_BOOTSCREEN
- /**
- * The duration and frequency for the UI feedback sound.
- * Set these to 0 to disable audio feedback in the LCD menus.
- * Only valid for SERIAL_TSC LCD MODE and if BUZZER_PIN is set or available.
- *
- * Note: Test audio output with the G-Code:
- * M300 S<frequency Hz> P<duration ms>
- */
- #define BUZZER_FREQUENCY_DURATION_MS 20 // Default 20
- #define BUZZER_FREQUENCY_HZ 10000 // Default 10000, 20Hz to 60KHz
- #define BUZZER_STOP_LEVEL false
- /**
- * Default Touch Mode Color Options
- */
- #define TITLE_BACKGROUND_COLOR BLACK // Title background color // 0xD928
- #define BACKGROUND_COLOR BLACK // Background color // 0x0A29
- #define FONT_COLOR WHITE // Font foreground color
- #define REMINDER_FONT_COLOR RED // Reminder font color, such as: "No print attached", "Busy processing", etc.
- #define VOLUME_REMINDER_FONT_COLOR GBLUE // Volume reminder font color, such as: "Card inserted", "Card removed"
- #define TOOL_NUM 1 // set in 1~6
- #define EXTRUDER_NUM 1 // set in 1~6
- #define FAN_NUM 1 // set in 1~6
- // PLA PETG ABS
- #define PREHEAT_BED {65, 100, 110}
- #define PREHEAT_HOTEND {140, 160, 200}
- #define HEAT_MAX_TEMP {130, 275, 275, 275, 275, 275, 275} //max temperature can be set
- #define HEAT_SIGN_ID {"B:", "T0:", "T1:", "T2:", "T3:", "T4:", "T5:"}
- #define HEAT_DISPLAY_ID {"Bed", "T0", "T1", "T2", "T3", "T4", "T5"}
- #define HEAT_CMD {"M140", "M104 T0", "M104 T1", "M104 T2", "M104 T3", "M104 T4", "M104 T5" };
- #define HEAT_WAIT_CMD {"M190", "M109 T0", "M109 T1", "M109 T2", "M109 T3", "M109 T4", "M109 T5" };
- #define TOOL_CHANGE {"T0", "T1", "T2", "T3", "T4", "T5"}
- #define EXTRUDER_ID {"E0", "E1", "E2", "E3", "E4", "E5"}
- #define FAN_MAX_PWM {255, 255, 255, 255, 255, 255}
- #define FAN_ID {"F0", "F1", "F2", "F3", "F4", "F5"}
- #define FAN_CMD {"M106 P0", "M106 P1", "M106 P2", "M106 P3", "M106 P4", "M106 P5" };
- #define SPEED_ID {"Sp.", "Fr."}
- // Default move speed mm/min
- #define DEFAULT_SPEED_MOVE 3000
- #define SPEED_MOVE_SLOW 1000
- #define SPEED_MOVE_FAST 5000
- // Extrude speed mm/min
- #define EXTRUDE_SLOW_SPEED 60
- #define EXTRUDE_NORMAL_SPEED 600
- #define EXTRUDE_FAST_SPEED 1200
- // Size of machine
- #define X_MIN_POS 0
- #define Y_MIN_POS 0
- #define Z_MIN_POS 0
- #define X_MAX_POS 235
- #define Y_MAX_POS 236
- #define Z_MAX_POS 240
- // Specify a pause position as { X, Y, Z_raise }
- #define NOZZLE_PAUSE_RETRACT_LENGTH 15 // (mm)
- #define NOZZLE_RESUME_PURGE_LENGTH 16 // (mm)
- #define NOZZLE_PAUSE_X_POSITION (X_MIN_POS + 10) // (mm) Must be an integer
- #define NOZZLE_PAUSE_Y_POSITION (Y_MIN_POS + 10) // (mm) Must be an integer
- #define NOZZLE_PAUSE_Z_RAISE 20 // (mm)
- #define NOZZLE_PAUSE_E_FEEDRATE 6000 // (mm/min) retract & purge feedrate
- #define NOZZLE_PAUSE_XY_FEEDRATE 6000 // (mm/min) X and Y axes feedrate
- #define NOZZLE_PAUSE_Z_FEEDRATE 600 // (mm/min) Z axis feedrate
- /**
- * Auto Save Load Leveling Data
- * The TFT will auto detect if Auto Bed Level is available.
- * Enable this will send "M500" after "G29" to store leveling value
- * and send "M420 S1" to enable leveling state after startup
- */
- #define AUTO_SAVE_LOAD_LEVELING_VALUE
- /**
- * Manual Leveling
- * Move to four corner points to Leveling manually (Point 1, Point 2, Point 3, Point 4)
- */
- #define LEVELING_POINT_1_X (X_MIN_POS + 20)
- #define LEVELING_POINT_1_Y (Y_MIN_POS + 20)
- #define LEVELING_POINT_2_X (X_MAX_POS - 20)
- #define LEVELING_POINT_2_Y (Y_MIN_POS + 20)
- #define LEVELING_POINT_3_X (X_MAX_POS - 20)
- #define LEVELING_POINT_3_Y (Y_MAX_POS - 20)
- #define LEVELING_POINT_4_X (X_MIN_POS + 20)
- #define LEVELING_POINT_4_Y (Y_MAX_POS - 20)
- #define LEVELING_POINT_Z 0.2f // Z-axis position when nozzle stays for leveling
- #define LEVELING_POINT_MOVE_Z 10.0f // Z-axis position when nozzle move to next point
- #define LEVELING_POINT_XY_FEEDRATE 6000 // (mm/min) X and Y axes move feedrate
- #define LEVELING_POINT_Z_FEEDRATE 600 // (mm/min) Z axis move feedrate
- // Power Supply
- #define PS_ON_ACTIVE_HIGH true // Set 'false' for ATX (1), 'true' for X-Box (2)
- // Filament runout detection
- #define FIL_RUNOUT_INVERTING true // Set to false to invert the logic of the sensor.
- #define FIL_NOISE_THRESHOLD 100 // 100ms, Pause print when filament runout is detected for 100ms.
- // Smart filament runout detection
- // For use with an encoder disc that toggles runout pin as filament moves
- #define FILAMENT_RUNOUT_DISTANCE_MM 7
- // Enable alternative Move Menu Buttons Layout matching the direction of actual printer axis.
- // update the icons from alternate icon folder
- #define ALTERNATIVE_MOVE_MENU
- // Enable Unified Move Menu
- // Move, Home, Extrude, ABL at one Place and bring G-code Menu on Home Menu
- #define UNIFIED_MENU
- /**
- * SD support
- * The TFT will auto configure M27 AutoReport with M115 command
- * Set the time interval to poll SD Printing status if Marlin reports M27 disabled.
- */
- #define ONBOARD_SD_SUPPORT
- #ifdef ONBOARD_SD_SUPPORT
- #define M27_REFRESH 3 // Time in sec for M27 command
- #define M27_WATCH_OTHER_SOURCES true // if true the polling on M27 report is always active. Case: SD print started not from TFT35
- #endif
- /**
- * Power Loss Recovery
- *
- * Most suitable for Delta printers since most printers will crash into printed model when homing after powerloss.
- */
- //#define HOME_BEFORE_PLR // Home before power loss recovery
- //#define BTT_MINI_UPS // Backup power / UPS to move Z axis on power loss
- #define POWER_LOSS_ZRAISE 10 // (mm) Raise Z axis on resume (on power loss with UPS)
- // Prevent extrusion if the temperature is below set temperature
- #define PREVENT_COLD_EXTRUSION_MINTEMP 180
- /**
- * Maximum hotend temperature of automatic shut down after printing.
- * When enable automatic shutdown(Auto Power), when the hotend temperature is higher than this value
- * turn on the fan to cool down, wait for the hotend temperature to be lower than this value, then turn off the power automatically
- */
- #define AUTO_SHUT_DOWN_MAXTEMP 50
- #define SHOW_FAN_PERCENTAGE // enable to show fan speed as a percentage instead of a value
- /**
- * Rapid Serial Communication
- *
- * More frequent Serial communicaiton while printing.
- *
- * Send and parse G-codes more frequently while drawing on screen to prevent printer idling and stuttering due to empty printer buffer.
- *
- * Note: This may slow down graphics while switching menus while printing.
- */
- #define RAPID_SERIAL_COMM
- /**
- * Custom G-code Commands
- *
- * Support for up to 15 custom G-codes. Uncomment CUSTOM_*_LABEL and CUSTOM_*_GCODE to enable custom G-code.
- *
- * CUSTOM_X_LABEL is the name of the custom button, CUSTOM_X_GCODE is the G-code to be sent by the custom button, this should always end with a New-Line character '\n'
- */
- #define CUSTOM_0_LABEL "Disable Steppers"
- #define CUSTOM_0_GCODE "M84\n"
- #define CUSTOM_1_LABEL "Init SD Card"
- #define CUSTOM_1_GCODE "M21\n"
- #define CUSTOM_2_LABEL "Release SD Card"
- #define CUSTOM_2_GCODE "M22\n"
- #define CUSTOM_3_LABEL "Enable Leveling State"
- #define CUSTOM_3_GCODE "M420 S1\n"
- #define CUSTOM_4_LABEL "Save to EEPROM"
- #define CUSTOM_4_GCODE "M500\n"
- #define CUSTOM_5_LABEL "Restore from EEPROM"
- #define CUSTOM_5_GCODE "M501\n"
- #define CUSTOM_6_LABEL "EEPROM Defaults"
- #define CUSTOM_6_GCODE "M502\n"
- //#define CUSTOM_7_LABEL "Custom7"
- //#define CUSTOM_7_GCODE "M105\n"
- //#define CUSTOM_8_LABEL "Custom8"
- //#define CUSTOM_8_GCODE "M105\n"
- //#define CUSTOM_9_LABEL "Custom9"
- //#define CUSTOM_9_GCODE "M105\n"
- //#define CUSTOM_10_LABEL "Custom10"
- //#define CUSTOM_10_GCODE "M105\n"
- //#define CUSTOM_11_LABEL "Custom11"
- //#define CUSTOM_11_GCODE "M105\n"
- //#define CUSTOM_12_LABEL "Custom12"
- //#define CUSTOM_12_GCODE "M105\n"
- //#define CUSTOM_13_LABEL "Custom13"
- //#define CUSTOM_13_GCODE "M105\n"
- //#define CUSTOM_14_LABEL "Custom14"
- //#define CUSTOM_14_GCODE "M105\n"
- /**
- * Start/End/Cancel G-code
- *
- * G-code that runs after a print starts, ends, or canceled.
- *
- * Disable in SETTINGS -> FEATURE menu.
- */
- // Start G-code - run this G-code before starting print
- #define PRINT_START_GCODE "G28\nG29\nG1 Z20\n" // Home all, run ABL routine, raise Z 20 mm
- // End G-code - run this G-code after finishing print
- #define PRINT_END_GCODE "G90\nG1 E-4\nG92 E0\nM18\n" // Switch to absolute positioning, reduce filament pressure by performing small retract, reset extruder position, disable steppers
- // Cancel G-code - run this G-code after canceling print
- #define CANCEL_PRINT_GCODE "G28 XY R10\n" // Raise Z 10mm before homing X & Y
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement