|
|
@ -183,23 +183,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
#define ENCODER_FEEDRATE_DEADZONE 4
|
|
|
|
#define ENCODER_FEEDRATE_DEADZONE 4
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef ENCODER_PULSES_PER_STEP
|
|
|
|
#define STD_ENCODER_PULSES_PER_STEP 1
|
|
|
|
#define ENCODER_PULSES_PER_STEP 1
|
|
|
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
|
|
|
#elif ENABLED(G3D_PANEL)
|
|
|
|
#define ENCODER_STEPS_PER_MENU_ITEM 2
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#define STD_ENCODER_PULSES_PER_STEP 2
|
|
|
|
|
|
|
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#elif ENABLED(miniVIKI) || ENABLED(VIKI2) \
|
|
|
|
|
|
|
|
|| ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
|
|
|
|
|
|
|
|
|| ENABLED(OLED_PANEL_TINYBOY2) \
|
|
|
|
|
|
|
|
|| ENABLED(BQ_LCD_SMART_CONTROLLER) \
|
|
|
|
|
|
|
|
|| ENABLED(LCD_I2C_PANELOLU2) \
|
|
|
|
|
|
|
|
|| ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
|
|
|
|
|
|
|
#define STD_ENCODER_PULSES_PER_STEP 4
|
|
|
|
|
|
|
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Set encoder detents for well-known controllers
|
|
|
|
#ifndef STD_ENCODER_PULSES_PER_STEP
|
|
|
|
#if ENABLED(miniVIKI) || ENABLED(VIKI2) || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) || ENABLED(OLED_PANEL_TINYBOY2) \
|
|
|
|
#define STD_ENCODER_PULSES_PER_STEP 5
|
|
|
|
|| ENABLED(BQ_LCD_SMART_CONTROLLER) || ENABLED(LCD_I2C_PANELOLU2) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
|
|
|
#endif
|
|
|
|
#ifndef ENCODER_PULSES_PER_STEP
|
|
|
|
#ifndef STD_ENCODER_STEPS_PER_MENU_ITEM
|
|
|
|
#define ENCODER_PULSES_PER_STEP 4
|
|
|
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
|
|
|
#ifndef ENCODER_PULSES_PER_STEP
|
|
|
|
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
|
|
|
#define ENCODER_PULSES_PER_STEP STD_ENCODER_PULSES_PER_STEP
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
|
|
|
|
|
|
|
#define ENCODER_STEPS_PER_MENU_ITEM STD_ENCODER_STEPS_PER_MENU_ITEM
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Shift register panels
|
|
|
|
// Shift register panels
|
|
|
|