Rename encoder pins defines (#24003)

This commit is contained in:
Ryan 2024-07-03 17:18:27 +10:00 committed by GitHub
parent 8471dcc563
commit bc0c69570b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 100 additions and 91 deletions

View file

@ -38,5 +38,5 @@
/* Custom encoder needs to specify just how many encoders we have */
#define NUM_ENCODERS 1
#define ENCODERS_PAD_A { F0 }
#define ENCODERS_PAD_B { F4 }
#define ENCODER_A_PINS { F0 }
#define ENCODER_B_PINS { F4 }

View file

@ -71,8 +71,8 @@ float scroll_accumulated_v = 0;
#ifdef ENCODER_ENABLE
uint16_t lastScroll = 0; // Previous confirmed wheel event
uint16_t lastMidClick = 0; // Stops scrollwheel from being read if it was pressed
pin_t encoder_pins_a[1] = ENCODERS_PAD_A;
pin_t encoder_pins_b[1] = ENCODERS_PAD_B;
pin_t encoder_pins_a[1] = ENCODER_A_PINS;
pin_t encoder_pins_b[1] = ENCODER_B_PINS;
bool debug_encoder = false;
bool encoder_update_kb(uint8_t index, bool clockwise) {

View file

@ -38,5 +38,5 @@
/* Custom encoder needs to specify just how many encoders we have */
#define NUM_ENCODERS 1
#define ENCODERS_PAD_A { F0 }
#define ENCODERS_PAD_B { F4 }
#define ENCODER_A_PINS { F0 }
#define ENCODER_B_PINS { F4 }

View file

@ -38,5 +38,5 @@
/* Custom encoder needs to specify just how many encoders we have */
#define NUM_ENCODERS 1
#define ENCODERS_PAD_A { F0 }
#define ENCODERS_PAD_B { F4 }
#define ENCODER_A_PINS { F0 }
#define ENCODER_B_PINS { F4 }

View file

@ -42,5 +42,5 @@
/* Custom encoder needs to specify just how many encoders we have */
#define NUM_ENCODERS 1
#define ENCODERS_PAD_A { F4 }
#define ENCODERS_PAD_B { F0 }
#define ENCODER_A_PINS { F4 }
#define ENCODER_B_PINS { F0 }