Skip to content

Commit

Permalink
ENCODERS_PAD_* -> ENCODER_*_PINS
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzz committed Sep 28, 2024
1 parent a780dd1 commit 75d2ccf
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions keyboards/42keebs/basketweave_s/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
*/
// #define GRAVE_ESC_CTRL_OVERRIDE

#define ENCODERS_PAD_A { B3, D1 }
#define ENCODERS_PAD_B { B4, D0 }
#define ENCODER_A_PINS { B3, D1 }
#define ENCODER_B_PINS { B4, D0 }
#define ENCODER_RESOLUTION 4
#define TAP_CODE_DELAY 10

Expand Down
4 changes: 2 additions & 2 deletions keyboards/42keebs/discipline/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define USB_MAX_POWER_CONSUMPTION 100

#define ENCODERS_PAD_A { D0 }
#define ENCODERS_PAD_B { D1 }
#define ENCODER_A_PINS { D0 }
#define ENCODER_B_PINS { D1 }
#define ENCODER_DIRECTION_FLIP
#define ENCODER_RESOLUTION 4
#define TAP_CODE_DELAY 10
Expand Down
4 changes: 2 additions & 2 deletions keyboards/42keebs/mysterium/v15c/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define ENCODERS_PAD_A { C0 }
#define ENCODERS_PAD_B { C1 }
#define ENCODER_A_PINS { C0 }
#define ENCODER_B_PINS { C1 }
#define ENCODER_DIRECTION_FLIP
#define ENCODER_RESOLUTION 4
#define TAP_CODE_DELAY 10
4 changes: 2 additions & 2 deletions keyboards/42keebs/mysterium/v15d/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define ENCODERS_PAD_A { B5 }
#define ENCODERS_PAD_B { B6 }
#define ENCODER_A_PINS { B5 }
#define ENCODER_B_PINS { B6 }
#define ENCODER_RESOLUTION 4
4 changes: 2 additions & 2 deletions keyboards/doio/kb04/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#define DEBOUNCE 5

/* Encoder pins */
#define ENCODERS_PAD_A { B5 }
#define ENCODERS_PAD_B { B6 }
#define ENCODER_A_PINS { B5 }
#define ENCODER_B_PINS { B6 }

#ifdef RGB_MATRIX_ENABLE
/* RGB Matrix config */
Expand Down
4 changes: 2 additions & 2 deletions keyboards/lazydesigners/cloud/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { F0, F6, D5, F7 }
#define MATRIX_COL_PINS { E6, B2, B3, B7, D4, D6, D7, B4, B5, B6, C6, C7, F1 }

#define ENCODERS_PAD_A { F4 }
#define ENCODERS_PAD_B { F5 }
#define ENCODER_A_PINS { F4 }
#define ENCODER_B_PINS { F5 }

#define DIODE_DIRECTION COL2ROW

Expand Down
8 changes: 4 additions & 4 deletions keyboards/rgbkb/mun2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
#define TAP_CODE_DELAY 1 // without a slight delay, the RP2040 doesn't register instant taps

/* Encoder Configuration */
#define ENCODERS_PAD_A { GP7, GP27, GP4 }
#define ENCODERS_PAD_A_RIGHT { GP27, GP7, GP5 }
#define ENCODER_A_PINS { GP7, GP27, GP4 }
#define ENCODER_A_PINS_RIGHT { GP27, GP7, GP5 }

#define ENCODERS_PAD_B { GP6, GP28, GP5 }
#define ENCODERS_PAD_B_RIGHT { GP26, GP6, GP4 }
#define ENCODER_B_PINS { GP6, GP28, GP5 }
#define ENCODER_B_PINS_RIGHT { GP26, GP6, GP4 }

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
Expand Down
4 changes: 2 additions & 2 deletions keyboards/sergiopoverony/creator_lite/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#define UNUSED_PINS

/* encoder */
#define ENCODERS_PAD_A { D3 }
#define ENCODERS_PAD_B { D2 }
#define ENCODER_A_PINS { D3 }
#define ENCODER_B_PINS { D2 }
#define ENCODER_RESOLUTION 1

#define USB_POLLING_INTERVAL_MS 1
Expand Down
4 changes: 2 additions & 2 deletions keyboards/soroka/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

#pragma once

#define ENCODERS_PAD_A { GP0 }
#define ENCODERS_PAD_B { GP1 }
#define ENCODER_A_PINS { GP0 }
#define ENCODER_B_PINS { GP1 }
4 changes: 2 additions & 2 deletions keyboards/velocifire/sun20pro/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
/* key matrix pins */
#define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 }
#define MATRIX_COL_PINS { F7, F6, F5, F4 }
#define ENCODERS_PAD_A { D6 }
#define ENCODERS_PAD_B { D7 }
#define ENCODER_A_PINS { D6 }
#define ENCODER_B_PINS { D7 }

/* COL2ROW or ROW2COL */

Expand Down

0 comments on commit 75d2ccf

Please sign in to comment.