Browse Source

Init pins for Analog Joystick sensor (#22985)

pull/22997/head
Drashna Jaelre 2 months ago
committed by GitHub
parent
commit
b910b1261d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      drivers/sensors/analog_joystick.c

+ 3
- 0
drivers/sensors/analog_joystick.c View File

@ -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


Loading…
Cancel
Save