mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-21 19:09:25 +00:00
Init pins for Analog Joystick sensor (#22985)
This commit is contained in:
parent
5a4531427d
commit
b910b1261d
@ -128,6 +128,9 @@ report_analog_joystick_t analog_joystick_read(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void analog_joystick_init(void) {
|
void analog_joystick_init(void) {
|
||||||
|
setPinInputHigh(ANALOG_JOYSTICK_X_AXIS_PIN);
|
||||||
|
setPinInputHigh(ANALOG_JOYSTICK_Y_AXIS_PIN);
|
||||||
|
|
||||||
#ifdef ANALOG_JOYSTICK_CLICK_PIN
|
#ifdef ANALOG_JOYSTICK_CLICK_PIN
|
||||||
setPinInputHigh(ANALOG_JOYSTICK_CLICK_PIN);
|
setPinInputHigh(ANALOG_JOYSTICK_CLICK_PIN);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user