diff options
author | Drashna Jaelre <[email protected]> | 2024-01-30 15:20:30 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-30 23:20:30 +0000 |
commit | b910b1261d1adf6de2f2db99061c57ef218fc042 (patch) | |
tree | 6218adc7849a5f1ba2a2ce144c39e130dbc6e558 /drivers | |
parent | 5a4531427d75484792bf29091c19c9f1f0dad063 (diff) | |
download | qmk_firmware-b910b1261d1adf6de2f2db99061c57ef218fc042.tar.gz qmk_firmware-b910b1261d1adf6de2f2db99061c57ef218fc042.zip |
Init pins for Analog Joystick sensor (#22985)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/sensors/analog_joystick.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/sensors/analog_joystick.c b/drivers/sensors/analog_joystick.c index 4aede4eacd..221625075c 100644 --- a/drivers/sensors/analog_joystick.c +++ b/drivers/sensors/analog_joystick.c @@ -128,6 +128,9 @@ report_analog_joystick_t analog_joystick_read(void) { } void analog_joystick_init(void) { + setPinInputHigh(ANALOG_JOYSTICK_X_AXIS_PIN); + setPinInputHigh(ANALOG_JOYSTICK_Y_AXIS_PIN); + #ifdef ANALOG_JOYSTICK_CLICK_PIN setPinInputHigh(ANALOG_JOYSTICK_CLICK_PIN); #endif |