Skip to content

Commit

Permalink
Placed optional ENCODER_PULSES_PER_STEP in the configuration.h file
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikZalm committed Sep 23, 2013
1 parent 3ca1ca6 commit 9bc88f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
//#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
//#define SDSUPPORT // Enable SD Card Support in Hardware Console
//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)

//#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
//#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
//#define ULTIPANEL //the ultipanel as on thingiverse

Expand Down
8 changes: 6 additions & 2 deletions Marlin/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ static void menu_action_setting_edit_callback_long5(const char* pstr, unsigned l

#if !defined(LCD_I2C_VIKI)
#define ENCODER_STEPS_PER_MENU_ITEM 5
#define ENCODER_PULSES_PER_STEP 1
#ifndef ENCODER_PULSES_PER_STEP
#define ENCODER_PULSES_PER_STEP 1
#endif
#else
#define ENCODER_STEPS_PER_MENU_ITEM 2 // VIKI LCD rotary encoder uses a different number of steps per rotation
#define ENCODER_PULSES_PER_STEP 1
#ifndef ENCODER_PULSES_PER_STEP
#define ENCODER_PULSES_PER_STEP 1
#endif
#endif


Expand Down

0 comments on commit 9bc88f8

Please sign in to comment.