Browse Source

Add REVERSE_ENCODER_DIRECTION option

pull/1/head
Scott Lahteine 8 years ago
parent
commit
4dc4e2063f
  1. 7
      Marlin/Configuration.h
  2. 7
      Marlin/example_configurations/Felix/Configuration.h
  3. 7
      Marlin/example_configurations/Felix/Configuration_DUAL.h
  4. 7
      Marlin/example_configurations/Hephestos/Configuration.h
  5. 7
      Marlin/example_configurations/Hephestos_2/Configuration.h
  6. 7
      Marlin/example_configurations/K8200/Configuration.h
  7. 7
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  8. 7
      Marlin/example_configurations/RigidBot/Configuration.h
  9. 7
      Marlin/example_configurations/SCARA/Configuration.h
  10. 7
      Marlin/example_configurations/TAZ4/Configuration.h
  11. 7
      Marlin/example_configurations/WITBOX/Configuration.h
  12. 7
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  13. 7
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  14. 7
      Marlin/example_configurations/delta/generic/Configuration.h
  15. 7
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  16. 7
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  17. 7
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  18. 7
      Marlin/example_configurations/makibox/Configuration.h
  19. 7
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  20. 8
      Marlin/ultralcd.cpp

7
Marlin/Configuration.h

@ -862,6 +862,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/Felix/Configuration.h

@ -845,6 +845,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/Felix/Configuration_DUAL.h

@ -843,6 +843,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/Hephestos/Configuration.h

@ -854,6 +854,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/Hephestos_2/Configuration.h

@ -856,6 +856,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/K8200/Configuration.h

@ -879,6 +879,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h

@ -862,6 +862,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/RigidBot/Configuration.h

@ -857,6 +857,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/SCARA/Configuration.h

@ -870,6 +870,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/TAZ4/Configuration.h

@ -883,6 +883,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
#define ENCODER_STEPS_PER_MENU_ITEM 1
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/WITBOX/Configuration.h

@ -854,6 +854,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/adafruit/ST7565/Configuration.h

@ -862,6 +862,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/delta/biv2.5/Configuration.h

@ -991,6 +991,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/delta/generic/Configuration.h

@ -991,6 +991,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/delta/kossel_mini/Configuration.h

@ -995,6 +995,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/delta/kossel_pro/Configuration.h

@ -988,6 +988,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/delta/kossel_xl/Configuration.h

@ -996,6 +996,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/makibox/Configuration.h

@ -865,6 +865,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

7
Marlin/example_configurations/tvrrug/Round2/Configuration.h

@ -856,6 +856,13 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
//
// This option reverses the encoder direction everywhere
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// This option reverses the encoder direction for navigating LCD menus.
//

8
Marlin/ultralcd.cpp

@ -2466,9 +2466,15 @@ void lcd_reset_alert_level() { lcd_status_message_level = 0; }
GET_BUTTON_STATES(buttons);
#endif //!NEWPANEL
#if ENABLED(REVERSE_MENU_DIRECTION)
#if ENABLED(REVERSE_MENU_DIRECTION) && ENABLED(REVERSE_ENCODER_DIRECTION)
#define ENCODER_DIFF_CW (encoderDiff -= encoderDirection)
#define ENCODER_DIFF_CCW (encoderDiff += encoderDirection)
#elif ENABLED(REVERSE_MENU_DIRECTION)
#define ENCODER_DIFF_CW (encoderDiff += encoderDirection)
#define ENCODER_DIFF_CCW (encoderDiff -= encoderDirection)
#elif ENABLED(REVERSE_ENCODER_DIRECTION)
#define ENCODER_DIFF_CW (encoderDiff--)
#define ENCODER_DIFF_CCW (encoderDiff++)
#else
#define ENCODER_DIFF_CW (encoderDiff++)
#define ENCODER_DIFF_CCW (encoderDiff--)

Loading…
Cancel
Save