Browse Source

Add option to invert joystick axes (#16466)

Jamie 4 years ago
parent
commit
9b970cf12f
100 changed files with 511 additions and 104 deletions
  1. 5
    1
      Marlin/Configuration_adv.h
  2. 21
    6
      Marlin/src/feature/joystick.cpp
  3. 5
    1
      config/default/Configuration_adv.h
  4. 5
    1
      config/examples/3DFabXYZ/Migbot/Configuration_adv.h
  5. 5
    1
      config/examples/ADIMLab/Gantry v1/Configuration_adv.h
  6. 5
    1
      config/examples/ADIMLab/Gantry v2/Configuration_adv.h
  7. 5
    1
      config/examples/AlephObjects/TAZ4/Configuration_adv.h
  8. 5
    1
      config/examples/Alfawise/U20-bltouch/Configuration_adv.h
  9. 5
    1
      config/examples/Alfawise/U20/Configuration_adv.h
  10. 5
    1
      config/examples/AliExpress/UM2pExt/Configuration_adv.h
  11. 5
    1
      config/examples/Anet/A2/Configuration_adv.h
  12. 5
    1
      config/examples/Anet/A2plus/Configuration_adv.h
  13. 5
    1
      config/examples/Anet/A6/Configuration_adv.h
  14. 5
    1
      config/examples/Anet/A8/Configuration_adv.h
  15. 5
    1
      config/examples/Anet/A8plus/Configuration_adv.h
  16. 5
    1
      config/examples/Anet/E10/Configuration_adv.h
  17. 5
    1
      config/examples/Anet/E16/Configuration_adv.h
  18. 5
    1
      config/examples/AnyCubic/i3/Configuration_adv.h
  19. 5
    1
      config/examples/ArmEd/Configuration_adv.h
  20. 5
    1
      config/examples/Artillery/Genius/Configuration_adv.h
  21. 5
    1
      config/examples/Artillery/Sidewinder X1/Configuration_adv.h
  22. 5
    1
      config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  23. 5
    1
      config/examples/BIBO/TouchX/default/Configuration_adv.h
  24. 5
    1
      config/examples/BQ/Hephestos/Configuration_adv.h
  25. 5
    1
      config/examples/BQ/Hephestos_2/Configuration_adv.h
  26. 5
    1
      config/examples/BQ/WITBOX/Configuration_adv.h
  27. 5
    1
      config/examples/BigTreeTech/SKR Mini E3 1.0/Configuration_adv.h
  28. 5
    1
      config/examples/BigTreeTech/SKR Mini E3 1.2/Configuration_adv.h
  29. 5
    1
      config/examples/Cartesio/Configuration_adv.h
  30. 5
    1
      config/examples/Creality/CR-10/Configuration_adv.h
  31. 5
    1
      config/examples/Creality/CR-10S/Configuration_adv.h
  32. 5
    1
      config/examples/Creality/CR-10_5S/Configuration_adv.h
  33. 5
    1
      config/examples/Creality/CR-10mini/Configuration_adv.h
  34. 5
    1
      config/examples/Creality/CR-20 Pro/Configuration_adv.h
  35. 5
    1
      config/examples/Creality/CR-20/Configuration_adv.h
  36. 5
    1
      config/examples/Creality/CR-8/Configuration_adv.h
  37. 5
    1
      config/examples/Creality/Ender-2/Configuration_adv.h
  38. 5
    1
      config/examples/Creality/Ender-3/Configuration_adv.h
  39. 5
    1
      config/examples/Creality/Ender-4/Configuration_adv.h
  40. 5
    1
      config/examples/Creality/Ender-5 Pro/Configuration_adv.h
  41. 5
    1
      config/examples/Creality/Ender-5/Configuration_adv.h
  42. 5
    1
      config/examples/Dagoma/Disco Ultimate/Configuration_adv.h
  43. 5
    1
      config/examples/EXP3D/Imprimante multifonction/Configuration_adv.h
  44. 5
    1
      config/examples/Einstart-S/Configuration_adv.h
  45. 5
    1
      config/examples/FYSETC/AIO_II/Configuration_adv.h
  46. 5
    1
      config/examples/FYSETC/Cheetah 1.2/BLTouch/Configuration_adv.h
  47. 5
    1
      config/examples/FYSETC/Cheetah 1.2/base/Configuration_adv.h
  48. 5
    1
      config/examples/FYSETC/Cheetah/BLTouch/Configuration_adv.h
  49. 5
    1
      config/examples/FYSETC/Cheetah/base/Configuration_adv.h
  50. 5
    1
      config/examples/FYSETC/F6_13/Configuration_adv.h
  51. 5
    1
      config/examples/FYSETC/S6/Configuration_adv.h
  52. 5
    1
      config/examples/Felix/DUAL/Configuration_adv.h
  53. 5
    1
      config/examples/Felix/Single/Configuration_adv.h
  54. 5
    1
      config/examples/FlashForge/CreatorPro/Configuration_adv.h
  55. 5
    1
      config/examples/FolgerTech/i3-2020/Configuration_adv.h
  56. 5
    1
      config/examples/Formbot/Raptor/Configuration_adv.h
  57. 5
    1
      config/examples/Formbot/T_Rex_2+/Configuration_adv.h
  58. 5
    1
      config/examples/Formbot/T_Rex_3/Configuration_adv.h
  59. 5
    1
      config/examples/Geeetech/A10/Configuration_adv.h
  60. 5
    1
      config/examples/Geeetech/A10D/Configuration_adv.h
  61. 5
    1
      config/examples/Geeetech/A10M/Configuration_adv.h
  62. 5
    1
      config/examples/Geeetech/A10T/Configuration_adv.h
  63. 5
    1
      config/examples/Geeetech/A20/Configuration_adv.h
  64. 5
    1
      config/examples/Geeetech/A20M/Configuration_adv.h
  65. 5
    1
      config/examples/Geeetech/A20T/Configuration_adv.h
  66. 5
    1
      config/examples/Geeetech/A30/Configuration_adv.h
  67. 5
    1
      config/examples/Geeetech/D200/Configuration_adv.h
  68. 5
    1
      config/examples/Geeetech/E180/Configuration_adv.h
  69. 5
    1
      config/examples/Geeetech/M201/Configuration_adv.h
  70. 5
    1
      config/examples/Geeetech/MeCreator2/Configuration_adv.h
  71. 5
    1
      config/examples/Geeetech/PI3A PRO/Configuration_adv.h
  72. 5
    1
      config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  73. 5
    1
      config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  74. 5
    1
      config/examples/HMS434/Configuration_adv.h
  75. 5
    1
      config/examples/Infitary/i3-M508/Configuration_adv.h
  76. 5
    1
      config/examples/JGAurora/A1/Configuration_adv.h
  77. 5
    1
      config/examples/JGAurora/A5/Configuration_adv.h
  78. 5
    1
      config/examples/JGAurora/A5S/Configuration_adv.h
  79. 5
    1
      config/examples/JGAurora/Magic/Configuration_adv.h
  80. 5
    1
      config/examples/MakerFarm/Pegasus_12/Configuration_adv.h
  81. 5
    1
      config/examples/MakerParts/Configuration_adv.h
  82. 5
    1
      config/examples/Malyan/M150/Configuration_adv.h
  83. 5
    1
      config/examples/Malyan/M200/Configuration_adv.h
  84. 5
    1
      config/examples/Micromake/C1/enhanced/Configuration_adv.h
  85. 5
    1
      config/examples/Mks/Robin/Configuration_adv.h
  86. 5
    1
      config/examples/Mks/Sbase/Configuration_adv.h
  87. 5
    1
      config/examples/Modix/Big60/Configuration_adv.h
  88. 5
    1
      config/examples/RapideLite/RL200/Configuration_adv.h
  89. 5
    1
      config/examples/Renkforce/RF100/Configuration_adv.h
  90. 5
    1
      config/examples/Renkforce/RF100XL/Configuration_adv.h
  91. 5
    1
      config/examples/Renkforce/RF100v2/Configuration_adv.h
  92. 5
    1
      config/examples/RigidBot/Configuration_adv.h
  93. 5
    1
      config/examples/SCARA/MP_SCARA/Configuration_adv.h
  94. 5
    1
      config/examples/SCARA/Morgan/Configuration_adv.h
  95. 5
    1
      config/examples/STM32/Black_STM32F407VET6/Configuration_adv.h
  96. 5
    1
      config/examples/Sanguinololu/Configuration_adv.h
  97. 5
    1
      config/examples/Tevo/Michelangelo/Configuration_adv.h
  98. 5
    1
      config/examples/Tevo/Nereus/Configuration_adv.h
  99. 5
    1
      config/examples/Tevo/Tarantula Pro/Configuration_adv.h
  100. 0
    0
      config/examples/Tevo/Tornado/V1 (MKS Base)/Configuration_adv.h

+ 5
- 1
Marlin/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 21
- 6
Marlin/src/feature/joystick.cpp View File

@@ -42,25 +42,40 @@ Joystick joystick;
42 42
 
43 43
 #if HAS_JOY_ADC_X
44 44
   temp_info_t Joystick::x; // = { 0 }
45
+  #if ENABLED(INVERT_JOY_X)
46
+    #define JOY_X(N) (16383 - (N))
47
+  #else
48
+    #define JOY_X(N) (N)
49
+  #endif
45 50
 #endif
46 51
 #if HAS_JOY_ADC_Y
47 52
   temp_info_t Joystick::y; // = { 0 }
53
+  #if ENABLED(INVERT_JOY_Y)
54
+    #define JOY_Y(N) (16383 - (N))
55
+  #else
56
+    #define JOY_Y(N) (N)
57
+  #endif
48 58
 #endif
49 59
 #if HAS_JOY_ADC_Z
50 60
   temp_info_t Joystick::z; // = { 0 }
61
+  #if ENABLED(INVERT_JOY_Z)
62
+    #define JOY_Z(N) (16383 - (N))
63
+  #else
64
+    #define JOY_Z(N) (N)
65
+  #endif
51 66
 #endif
52 67
 
53 68
 #if ENABLED(JOYSTICK_DEBUG)
54 69
   void Joystick::report() {
55 70
     SERIAL_ECHOPGM("Joystick");
56 71
     #if HAS_JOY_ADC_X
57
-      SERIAL_ECHOPAIR_P(SP_X_STR, x.raw);
72
+      SERIAL_ECHOPAIR_P(SP_X_STR, JOY_X(x.raw));
58 73
     #endif
59 74
     #if HAS_JOY_ADC_Y
60
-      SERIAL_ECHOPAIR_P(SP_Y_STR, y.raw);
75
+      SERIAL_ECHOPAIR_P(SP_Y_STR, JOY_Y(y.raw));
61 76
     #endif
62 77
     #if HAS_JOY_ADC_Z
63
-      SERIAL_ECHOPAIR_P(SP_Z_STR, z.raw);
78
+      SERIAL_ECHOPAIR_P(SP_Z_STR, JOY_Z(z.raw));
64 79
     #endif
65 80
     #if HAS_JOY_ADC_EN
66 81
       SERIAL_ECHO_TERNARY(READ(JOY_EN_PIN), " EN=", "HIGH (dis", "LOW (en", "abled)");
@@ -91,15 +106,15 @@ Joystick joystick;
91 106
 
92 107
     #if HAS_JOY_ADC_X
93 108
       static constexpr int16_t joy_x_limits[4] = JOY_X_LIMITS;
94
-      _normalize_joy(norm_jog.x, x.raw, joy_x_limits);
109
+      _normalize_joy(norm_jog.x, JOY_X(x.raw), joy_x_limits);
95 110
     #endif
96 111
     #if HAS_JOY_ADC_Y
97 112
       static constexpr int16_t joy_y_limits[4] = JOY_Y_LIMITS;
98
-      _normalize_joy(norm_jog.y, y.raw, joy_y_limits);
113
+      _normalize_joy(norm_jog.y, JOY_Y(y.raw), joy_y_limits);
99 114
     #endif
100 115
     #if HAS_JOY_ADC_Z
101 116
       static constexpr int16_t joy_z_limits[4] = JOY_Z_LIMITS;
102
-      _normalize_joy(norm_jog.z, z.raw, joy_z_limits);
117
+      _normalize_joy(norm_jog.z, JOY_Z(z.raw), joy_z_limits);
103 118
     #endif
104 119
   }
105 120
 

+ 5
- 1
config/default/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/3DFabXYZ/Migbot/Configuration_adv.h View File

@@ -2774,7 +2774,11 @@
2774 2774
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2775 2775
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2776 2776
 
2777
-  // Use M119 to find reasonable values after connecting your hardware:
2777
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2778
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2779
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2780
+
2781
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2778 2782
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2779 2783
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2780 2784
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/ADIMLab/Gantry v1/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/ADIMLab/Gantry v2/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Alfawise/U20-bltouch/Configuration_adv.h View File

@@ -2765,7 +2765,11 @@
2765 2765
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2766 2766
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2767 2767
 
2768
-  // Use M119 to find reasonable values after connecting your hardware:
2768
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2769
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2770
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2771
+
2772
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2769 2773
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2770 2774
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2771 2775
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Alfawise/U20/Configuration_adv.h View File

@@ -2764,7 +2764,11 @@
2764 2764
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2765 2765
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2766 2766
 
2767
-  // Use M119 to find reasonable values after connecting your hardware:
2767
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2768
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2769
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2770
+
2771
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2768 2772
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2769 2773
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2770 2774
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/AliExpress/UM2pExt/Configuration_adv.h View File

@@ -2765,7 +2765,11 @@
2765 2765
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2766 2766
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2767 2767
 
2768
-  // Use M119 to find reasonable values after connecting your hardware:
2768
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2769
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2770
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2771
+
2772
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2769 2773
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2770 2774
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2771 2775
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Anet/A2/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Anet/A2plus/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Anet/A6/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Anet/A8/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Anet/A8plus/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Anet/E10/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Anet/E16/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/AnyCubic/i3/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/ArmEd/Configuration_adv.h View File

@@ -2767,7 +2767,11 @@
2767 2767
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2768 2768
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2769 2769
 
2770
-  // Use M119 to find reasonable values after connecting your hardware:
2770
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2771
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2772
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2773
+
2774
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2771 2775
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2772 2776
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2773 2777
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Artillery/Genius/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Artillery/Sidewinder X1/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/BIBO/TouchX/cyclops/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/BIBO/TouchX/default/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/BQ/Hephestos/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/BQ/Hephestos_2/Configuration_adv.h View File

@@ -2771,7 +2771,11 @@
2771 2771
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2772 2772
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2773 2773
 
2774
-  // Use M119 to find reasonable values after connecting your hardware:
2774
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2775
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2776
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2777
+
2778
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2775 2779
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2776 2780
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2777 2781
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/BQ/WITBOX/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/BigTreeTech/SKR Mini E3 1.0/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/BigTreeTech/SKR Mini E3 1.2/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Cartesio/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/CR-10/Configuration_adv.h View File

@@ -2766,7 +2766,11 @@
2766 2766
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2767 2767
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2768 2768
 
2769
-  // Use M119 to find reasonable values after connecting your hardware:
2769
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2770
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2771
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2772
+
2773
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2770 2774
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2771 2775
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2772 2776
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/CR-10S/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/CR-10_5S/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/CR-10mini/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/CR-20 Pro/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/CR-20/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/CR-8/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/Ender-2/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/Ender-3/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/Ender-4/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/Ender-5 Pro/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Creality/Ender-5/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Dagoma/Disco Ultimate/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/EXP3D/Imprimante multifonction/Configuration_adv.h View File

@@ -2759,7 +2759,11 @@
2759 2759
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2760 2760
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2761 2761
 
2762
-  // Use M119 to find reasonable values after connecting your hardware:
2762
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2763
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2764
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2765
+
2766
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2763 2767
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2764 2768
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2765 2769
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Einstart-S/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/FYSETC/AIO_II/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/FYSETC/Cheetah 1.2/BLTouch/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/FYSETC/Cheetah 1.2/base/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/FYSETC/Cheetah/BLTouch/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/FYSETC/Cheetah/base/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/FYSETC/F6_13/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/FYSETC/S6/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Felix/DUAL/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Felix/Single/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/FlashForge/CreatorPro/Configuration_adv.h View File

@@ -2762,7 +2762,11 @@
2762 2762
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2763 2763
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2764 2764
 
2765
-  // Use M119 to find reasonable values after connecting your hardware:
2765
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2766
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2767
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2768
+
2769
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2766 2770
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2767 2771
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2768 2772
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/FolgerTech/i3-2020/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Formbot/Raptor/Configuration_adv.h View File

@@ -2767,7 +2767,11 @@
2767 2767
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2768 2768
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2769 2769
 
2770
-  // Use M119 to find reasonable values after connecting your hardware:
2770
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2771
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2772
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2773
+
2774
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2771 2775
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2772 2776
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2773 2777
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Formbot/T_Rex_2+/Configuration_adv.h View File

@@ -2767,7 +2767,11 @@
2767 2767
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2768 2768
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2769 2769
 
2770
-  // Use M119 to find reasonable values after connecting your hardware:
2770
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2771
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2772
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2773
+
2774
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2771 2775
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2772 2776
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2773 2777
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Formbot/T_Rex_3/Configuration_adv.h View File

@@ -2762,7 +2762,11 @@
2762 2762
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2763 2763
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2764 2764
 
2765
-  // Use M119 to find reasonable values after connecting your hardware:
2765
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2766
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2767
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2768
+
2769
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2766 2770
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2767 2771
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2768 2772
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/A10/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/A10D/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/A10M/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/A10T/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/A20/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/A20M/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/A20T/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/A30/Configuration_adv.h View File

@@ -2762,7 +2762,11 @@
2762 2762
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2763 2763
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2764 2764
 
2765
-  // Use M119 to find reasonable values after connecting your hardware:
2765
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2766
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2767
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2768
+
2769
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2766 2770
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2767 2771
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2768 2772
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/D200/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/E180/Configuration_adv.h View File

@@ -2762,7 +2762,11 @@
2762 2762
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2763 2763
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2764 2764
 
2765
-  // Use M119 to find reasonable values after connecting your hardware:
2765
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2766
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2767
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2768
+
2769
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2766 2770
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2767 2771
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2768 2772
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/M201/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/MeCreator2/Configuration_adv.h View File

@@ -2762,7 +2762,11 @@
2762 2762
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2763 2763
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2764 2764
 
2765
-  // Use M119 to find reasonable values after connecting your hardware:
2765
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2766
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2767
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2768
+
2769
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2766 2770
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2767 2771
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2768 2772
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/PI3A PRO/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/HMS434/Configuration_adv.h View File

@@ -2755,7 +2755,11 @@
2755 2755
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2756 2756
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2757 2757
 
2758
-  // Use M119 to find reasonable values after connecting your hardware:
2758
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2759
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2760
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2761
+
2762
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2759 2763
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2760 2764
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2761 2765
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Infitary/i3-M508/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/JGAurora/A1/Configuration_adv.h View File

@@ -2768,7 +2768,11 @@
2768 2768
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2769 2769
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2770 2770
 
2771
-  // Use M119 to find reasonable values after connecting your hardware:
2771
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2772
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2773
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2774
+
2775
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2772 2776
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2773 2777
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2774 2778
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/JGAurora/A5/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/JGAurora/A5S/Configuration_adv.h View File

@@ -2768,7 +2768,11 @@
2768 2768
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2769 2769
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2770 2770
 
2771
-  // Use M119 to find reasonable values after connecting your hardware:
2771
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2772
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2773
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2774
+
2775
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2772 2776
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2773 2777
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2774 2778
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/JGAurora/Magic/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/MakerFarm/Pegasus_12/Configuration_adv.h View File

@@ -2760,7 +2760,11 @@
2760 2760
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2761 2761
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2762 2762
 
2763
-  // Use M119 to find reasonable values after connecting your hardware:
2763
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2764
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2765
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2766
+
2767
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2764 2768
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2765 2769
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2766 2770
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/MakerParts/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Malyan/M150/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Malyan/M200/Configuration_adv.h View File

@@ -2765,7 +2765,11 @@
2765 2765
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2766 2766
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2767 2767
 
2768
-  // Use M119 to find reasonable values after connecting your hardware:
2768
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2769
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2770
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2771
+
2772
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2769 2773
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2770 2774
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2771 2775
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Micromake/C1/enhanced/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Mks/Robin/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Mks/Sbase/Configuration_adv.h View File

@@ -2764,7 +2764,11 @@
2764 2764
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2765 2765
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2766 2766
 
2767
-  // Use M119 to find reasonable values after connecting your hardware:
2767
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2768
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2769
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2770
+
2771
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2768 2772
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2769 2773
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2770 2774
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Modix/Big60/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/RapideLite/RL200/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Renkforce/RF100/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Renkforce/RF100XL/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Renkforce/RF100v2/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/RigidBot/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/SCARA/MP_SCARA/Configuration_adv.h View File

@@ -2616,7 +2616,11 @@
2616 2616
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2617 2617
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2618 2618
 
2619
-  // Use M119 to find reasonable values after connecting your hardware:
2619
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2620
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2621
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2622
+
2623
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2620 2624
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2621 2625
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2622 2626
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/SCARA/Morgan/Configuration_adv.h View File

@@ -2760,7 +2760,11 @@
2760 2760
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2761 2761
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2762 2762
 
2763
-  // Use M119 to find reasonable values after connecting your hardware:
2763
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2764
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2765
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2766
+
2767
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2764 2768
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2765 2769
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2766 2770
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/STM32/Black_STM32F407VET6/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Sanguinololu/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Tevo/Michelangelo/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Tevo/Nereus/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 5
- 1
config/examples/Tevo/Tarantula Pro/Configuration_adv.h View File

@@ -2763,7 +2763,11 @@
2763 2763
   #define JOY_Z_PIN   12  // RAMPS: Suggested pin A12 on AUX2
2764 2764
   #define JOY_EN_PIN  44  // RAMPS: Suggested pin D44 on AUX2
2765 2765
 
2766
-  // Use M119 to find reasonable values after connecting your hardware:
2766
+  //#define INVERT_JOY_X  // Enable if X direction is reversed
2767
+  //#define INVERT_JOY_Y  // Enable if Y direction is reversed
2768
+  //#define INVERT_JOY_Z  // Enable if Z direction is reversed
2769
+
2770
+  // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
2767 2771
   #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
2768 2772
   #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
2769 2773
   #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }

+ 0
- 0
config/examples/Tevo/Tornado/V1 (MKS Base)/Configuration_adv.h View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save