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
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
359
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
360
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
360
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
361
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
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
 //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
363
 //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
364
 //#define ULTIPANEL  //the ultipanel as on thingiverse
364
 //#define ULTIPANEL  //the ultipanel as on thingiverse
365
 
365
 

+ 6
- 2
Marlin/ultralcd.cpp View File

88
 
88
 
89
 #if !defined(LCD_I2C_VIKI)
89
 #if !defined(LCD_I2C_VIKI)
90
   #define ENCODER_STEPS_PER_MENU_ITEM 5
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
 #else
94
 #else
93
   #define ENCODER_STEPS_PER_MENU_ITEM 2 // VIKI LCD rotary encoder uses a different number of steps per rotation
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
 #endif
99
 #endif
96
 
100
 
97
 
101
 

Loading…
Cancel
Save