diff options
Diffstat (limited to 'docs/feature_joystick.md')
| -rw-r--r-- | docs/feature_joystick.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/feature_joystick.md b/docs/feature_joystick.md index be3c781f6..12bbf5b35 100644 --- a/docs/feature_joystick.md +++ b/docs/feature_joystick.md | |||
| @@ -141,6 +141,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 141 | } | 141 | } |
| 142 | ``` | 142 | ``` |
| 143 | 143 | ||
| 144 | ### Axis Resolution | ||
| 145 | |||
| 146 | By default, the resolution of each axis is 8 bit, giving a range of -127 to +127. If you need higher precision, you can increase it by defining eg. `JOYSTICK_AXES_RESOLUTION 12` in your `config.h`. The resolution must be between 8 and 16. | ||
| 147 | |||
| 148 | Note that the supported AVR MCUs have a 10-bit ADC, and 12-bit for most STM32 MCUs. | ||
| 149 | |||
| 144 | ### Triggering Joystick Buttons | 150 | ### Triggering Joystick Buttons |
| 145 | 151 | ||
| 146 | Joystick buttons are normal Quantum keycodes, defined as `JS_BUTTON0` to `JS_BUTTON31`, depending on the number of buttons you have configured. | 152 | Joystick buttons are normal Quantum keycodes, defined as `JS_BUTTON0` to `JS_BUTTON31`, depending on the number of buttons you have configured. |
