123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369 |
-
-
-
-
- #ifndef CONDITIONALS_LCD_H
- #define CONDITIONALS_LCD_H
-
- #define LCD_HAS_DIRECTIONAL_BUTTONS (BUTTON_EXISTS(UP) || BUTTON_EXISTS(DWN) || BUTTON_EXISTS(LFT) || BUTTON_EXISTS(RT))
-
- #if ENABLED(CARTESIO_UI)
- #define DOGLCD
- #define ULTIPANEL
- #define NEWPANEL
- #define DEFAULT_LCD_CONTRAST 90
- #define LCD_CONTRAST_MIN 60
- #define LCD_CONTRAST_MAX 140
- #endif
-
- #if ENABLED(MAKRPANEL) || ENABLED(MINIPANEL)
- #define DOGLCD
- #define ULTIPANEL
- #define NEWPANEL
- #define DEFAULT_LCD_CONTRAST 17
- #endif
-
- #if ENABLED(miniVIKI) || ENABLED(VIKI2) || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
- #define ULTRA_LCD
- #define DOGLCD
- #define ULTIMAKERCONTROLLER
-
- #if ENABLED(miniVIKI)
- #define LCD_CONTRAST_MIN 75
- #define LCD_CONTRAST_MAX 115
- #define DEFAULT_LCD_CONTRAST 95
- #elif ENABLED(VIKI2)
- #define DEFAULT_LCD_CONTRAST 40
- #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
- #define LCD_CONTRAST_MIN 90
- #define LCD_CONTRAST_MAX 130
- #define DEFAULT_LCD_CONTRAST 110
- #define U8GLIB_LM6059_AF
- #define SD_DETECT_INVERTED
- #endif
-
- #ifndef ENCODER_PULSES_PER_STEP
- #define ENCODER_PULSES_PER_STEP 4
- #endif
- #ifndef ENCODER_STEPS_PER_MENU_ITEM
- #define ENCODER_STEPS_PER_MENU_ITEM 1
- #endif
- #endif
-
-
- #if ENABLED(U8GLIB_SSD1306) || ENABLED(U8GLIB_SH1106)
- #define ULTRA_LCD
- #define DOGLCD
- #endif
-
- #if ENABLED(PANEL_ONE) || ENABLED(U8GLIB_SH1106)
- #define ULTIMAKERCONTROLLER
- #endif
-
- #if ENABLED(BQ_LCD_SMART_CONTROLLER)
- #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
-
- #ifndef ENCODER_PULSES_PER_STEP
- #define ENCODER_PULSES_PER_STEP 4
- #endif
- #ifndef ENCODER_STEPS_PER_MENU_ITEM
- #define ENCODER_STEPS_PER_MENU_ITEM 1
- #endif
-
- #ifndef LONG_FILENAME_HOST_SUPPORT
- #define LONG_FILENAME_HOST_SUPPORT
- #endif
- #endif
-
- #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
- #define DOGLCD
- #define U8GLIB_ST7920
- #define REPRAP_DISCOUNT_SMART_CONTROLLER
- #endif
-
- #if ENABLED(ULTIMAKERCONTROLLER) \
- || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) \
- || ENABLED(G3D_PANEL) \
- || ENABLED(RIGIDBOT_PANEL) \
- || ENABLED(REPRAPWORLD_KEYPAD)
- #define ULTIPANEL
- #define NEWPANEL
- #endif
-
- #if ENABLED(RA_CONTROL_PANEL)
- #define LCD_I2C_TYPE_PCA8574
- #define LCD_I2C_ADDRESS 0x27
- #define ULTIPANEL
- #define NEWPANEL
- #endif
-
- #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
- #define DOGLCD
- #define U8GLIB_ST7920
- #define ULTIPANEL
- #define NEWPANEL
- #endif
-
-
-
-
- #if ENABLED(LCD_I2C_SAINSMART_YWROBOT)
-
-
- #define LCD_I2C_TYPE_PCF8575
- #define LCD_I2C_ADDRESS 0x27
- #define ULTIPANEL
- #define NEWPANEL
- #endif
-
-
- #if ENABLED(LCD_I2C_PANELOLU2)
- #define LCD_I2C_TYPE_MCP23017
- #define LCD_I2C_ADDRESS 0x20
- #define LCD_USE_I2C_BUZZER
-
- #ifndef ENCODER_PULSES_PER_STEP
- #define ENCODER_PULSES_PER_STEP 4
- #endif
- #ifndef ENCODER_STEPS_PER_MENU_ITEM
- #define ENCODER_STEPS_PER_MENU_ITEM 1
- #endif
-
- #define ULTIPANEL
- #define NEWPANEL
- #endif
-
-
- #if ENABLED(LCD_I2C_VIKI)
-
-
-
-
- #define LCD_I2C_TYPE_MCP23017
- #define LCD_I2C_ADDRESS 0x20
- #define LCD_USE_I2C_BUZZER
- #define ULTIPANEL
- #define NEWPANEL
-
- #define ENCODER_FEEDRATE_DEADZONE 4
-
- #ifndef ENCODER_PULSES_PER_STEP
- #define ENCODER_PULSES_PER_STEP 1
- #endif
- #ifndef ENCODER_STEPS_PER_MENU_ITEM
- #define ENCODER_STEPS_PER_MENU_ITEM 2
- #endif
- #endif
-
-
-
-
-
-
- #if ENABLED(SAV_3DLCD)
- #define SR_LCD_2W_NL
- #define ULTIPANEL
- #define NEWPANEL
- #endif
-
- #if ENABLED(DOGLCD)
- #ifndef LCD_WIDTH
- #define LCD_WIDTH 22
- #endif
- #ifndef LCD_HEIGHT
- #define LCD_HEIGHT 5
- #endif
- #endif
-
- #if ENABLED(ULTIPANEL)
- #define NEWPANEL
- #define ULTRA_LCD
- #ifndef LCD_WIDTH
- #define LCD_WIDTH 20
- #endif
- #ifndef LCD_HEIGHT
- #define LCD_HEIGHT 4
- #endif
- #else
- #if ENABLED(ULTRA_LCD)
- #ifndef LCD_WIDTH
- #define LCD_WIDTH 16
- #endif
- #ifndef LCD_HEIGHT
- #define LCD_HEIGHT 2
- #endif
- #endif
- #endif
-
- #if ENABLED(DOGLCD)
-
-
- #define LCD_STR_REFRESH "\x01"
- #define LCD_STR_FOLDER "\x02"
- #define LCD_STR_ARROW_RIGHT "\x03"
- #define LCD_STR_UPLEVEL "\x04"
- #define LCD_STR_CLOCK "\x05"
- #define LCD_STR_FEEDRATE "\x06"
- #define LCD_STR_BEDTEMP "\x07"
- #define LCD_STR_THERMOMETER "\x08"
- #define LCD_STR_DEGREE "\x09"
-
- #define LCD_STR_SPECIAL_MAX '\x09'
-
-
- #else
-
- #define LCD_STR_BEDTEMP "\x00"
- #define LCD_STR_DEGREE "\x01"
- #define LCD_STR_THERMOMETER "\x02"
- #define LCD_STR_UPLEVEL "\x03"
- #define LCD_STR_REFRESH "\x04"
- #define LCD_STR_FOLDER "\x05"
- #define LCD_STR_FEEDRATE "\x06"
- #define LCD_STR_CLOCK "\x07"
- #define LCD_STR_ARROW_RIGHT ">"
- #endif
-
-
-
- #if ENABLED(DOGLCD)
-
- #define HAS_LCD_CONTRAST ( \
- ENABLED(MAKRPANEL) \
- || ENABLED(CARTESIO_UI) \
- || ENABLED(VIKI2) \
- || ENABLED(miniVIKI) \
- || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
- )
-
- #if HAS_LCD_CONTRAST
- #ifndef LCD_CONTRAST_MIN
- #define LCD_CONTRAST_MIN 0
- #endif
- #ifndef LCD_CONTRAST_MAX
- #define LCD_CONTRAST_MAX 63
- #endif
- #ifndef DEFAULT_LCD_CONTRAST
- #define DEFAULT_LCD_CONTRAST 32
- #endif
- #endif
- #endif
-
- #ifndef BOOTSCREEN_TIMEOUT
- #define BOOTSCREEN_TIMEOUT 2500
- #endif
-
-
-
- #if ENABLED(SINGLENOZZLE)
- #define HOTENDS 1
- #define E_STEPPERS EXTRUDERS
- #define E_MANUAL EXTRUDERS
- #define TOOL_E_INDEX current_block->active_extruder
- #undef TEMP_SENSOR_1_AS_REDUNDANT
- #undef HOTEND_OFFSET_X
- #undef HOTEND_OFFSET_Y
- #elif ENABLED(SWITCHING_EXTRUDER)
- #define HOTENDS EXTRUDERS
- #define E_STEPPERS 1
- #define E_MANUAL 1
- #define TOOL_E_INDEX 0
- #ifndef HOTEND_OFFSET_Z
- #define HOTEND_OFFSET_Z { 0 }
- #endif
- #elif ENABLED(MIXING_EXTRUDER)
- #define HOTENDS 1
- #define E_STEPPERS MIXING_STEPPERS
- #define E_MANUAL 1
- #define TOOL_E_INDEX 0
- #else
- #define HOTENDS EXTRUDERS
- #define E_STEPPERS EXTRUDERS
- #define E_MANUAL EXTRUDERS
- #define TOOL_E_INDEX current_block->active_extruder
- #endif
-
-
-
- #if ENABLED(BLTOUCH)
- #ifndef Z_ENDSTOP_SERVO_NR
- #define Z_ENDSTOP_SERVO_NR 0
- #endif
- #ifndef NUM_SERVOS
- #define NUM_SERVOS (Z_ENDSTOP_SERVO_NR + 1)
- #endif
- #undef DEACTIVATE_SERVOS_AFTER_MOVE
- #undef SERVO_DELAY
- #define SERVO_DELAY 50
- #undef Z_SERVO_ANGLES
- #define Z_SERVO_ANGLES { BLTOUCH_DEPLOY, BLTOUCH_STOW }
-
- #define BLTOUCH_DEPLOY 10
- #define BLTOUCH_STOW 90
- #define BLTOUCH_SELFTEST 120
- #define BLTOUCH_RESET 160
- #define _TEST_BLTOUCH(P) (READ(P##_PIN) != P##_ENDSTOP_INVERTING)
-
- #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
- #undef Z_MIN_ENDSTOP_INVERTING
- #define Z_MIN_ENDSTOP_INVERTING false
- #define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN)
- #else
- #define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN_PROBE)
- #endif
- #endif
-
-
-
- #define HAS_Z_SERVO_ENDSTOP (defined(Z_ENDSTOP_SERVO_NR) && Z_ENDSTOP_SERVO_NR >= 0)
-
-
-
- #define PROBE_SELECTED (ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))
-
-
-
- #if !PROBE_SELECTED
- #undef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
- #undef Z_MIN_PROBE_ENDSTOP
- #endif
-
- #endif
|