Browse Source

Placed optional ENCODER_PULSES_PER_STEP in the configuration.h file

Erik van der Zalm 12 years ago
parent
commit
9bc88f8bab
2 changed files with 7 additions and 3 deletions
  1. 1
    1
      Marlin/Configuration.h
  2. 6
    2
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/Configuration.h View File

@@ -359,7 +359,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
359 359
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
360 360
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
361 361
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
362
-
362
+//#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
363 363
 //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
364 364
 //#define ULTIPANEL  //the ultipanel as on thingiverse
365 365
 

+ 6
- 2
Marlin/ultralcd.cpp View File

@@ -88,10 +88,14 @@ static void menu_action_setting_edit_callback_long5(const char* pstr, unsigned l
88 88
 
89 89
 #if !defined(LCD_I2C_VIKI)
90 90
   #define ENCODER_STEPS_PER_MENU_ITEM 5
91
-  #define ENCODER_PULSES_PER_STEP 1
91
+  #ifndef ENCODER_PULSES_PER_STEP
92
+    #define ENCODER_PULSES_PER_STEP 1
93
+  #endif
92 94
 #else
93 95
   #define ENCODER_STEPS_PER_MENU_ITEM 2 // VIKI LCD rotary encoder uses a different number of steps per rotation
94
-  #define ENCODER_PULSES_PER_STEP 1
96
+  #ifndef ENCODER_PULSES_PER_STEP
97
+    #define ENCODER_PULSES_PER_STEP 1
98
+  #endif
95 99
 #endif
96 100
 
97 101
 

Loading…
Cancel
Save