|
@@ -177,31 +177,18 @@ uint8_t lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; // Set when the LCD needs to
|
177
|
177
|
static void menu_action_sddirectory(const char* filename, char* longFilename);
|
178
|
178
|
#endif
|
179
|
179
|
|
180
|
|
- #if DISABLED(LCD_I2C_VIKI)
|
181
|
|
- #ifndef ENCODER_FEEDRATE_DEADZONE
|
182
|
|
- #define ENCODER_FEEDRATE_DEADZONE 10
|
183
|
|
- #endif
|
184
|
|
- #ifndef ENCODER_STEPS_PER_MENU_ITEM
|
185
|
|
- #define ENCODER_STEPS_PER_MENU_ITEM 5
|
186
|
|
- #endif
|
187
|
|
- #ifndef ENCODER_PULSES_PER_STEP
|
188
|
|
- #define ENCODER_PULSES_PER_STEP 1
|
189
|
|
- #endif
|
190
|
|
- #else
|
191
|
|
- #ifndef ENCODER_FEEDRATE_DEADZONE
|
192
|
|
- #define ENCODER_FEEDRATE_DEADZONE 4
|
193
|
|
- #endif
|
194
|
|
- #ifndef ENCODER_STEPS_PER_MENU_ITEM
|
195
|
|
- #define ENCODER_STEPS_PER_MENU_ITEM 2 // VIKI LCD rotary encoder uses a different number of steps per rotation
|
196
|
|
- #endif
|
197
|
|
- #ifndef ENCODER_PULSES_PER_STEP
|
198
|
|
- #define ENCODER_PULSES_PER_STEP 1
|
199
|
|
- #endif
|
200
|
|
- #endif
|
201
|
|
-
|
202
|
|
-
|
203
|
180
|
/* Helper macros for menus */
|
204
|
181
|
|
|
182
|
+ #ifndef ENCODER_FEEDRATE_DEADZONE
|
|
183
|
+ #define ENCODER_FEEDRATE_DEADZONE 10
|
|
184
|
+ #endif
|
|
185
|
+ #ifndef ENCODER_STEPS_PER_MENU_ITEM
|
|
186
|
+ #define ENCODER_STEPS_PER_MENU_ITEM 5
|
|
187
|
+ #endif
|
|
188
|
+ #ifndef ENCODER_PULSES_PER_STEP
|
|
189
|
+ #define ENCODER_PULSES_PER_STEP 1
|
|
190
|
+ #endif
|
|
191
|
+
|
205
|
192
|
/**
|
206
|
193
|
* START_SCREEN generates the init code for a screen function
|
207
|
194
|
*
|