Skip to content

Commit

Permalink
replace unnecessary sofle pin defs with one liner
Browse files Browse the repository at this point in the history
  • Loading branch information
plodah committed Dec 9, 2024
1 parent 37cd45f commit 5861947
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions keyboards/sofle/keymaps/plodah/config.h
Original file line number Diff line number Diff line change
@@ -1,34 +1,12 @@
// Copyright 2024 Santosh Kumar (@santosh)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

// encoder pins are reversed somewhere along the way
#ifdef ENCODER_A_PINS
#undef ENCODER_A_PINS
#endif //ENCODER_A_PINS
#define ENCODER_A_PINS { F4 }

#ifdef ENCODER_B_PINS
#undef ENCODER_B_PINS
#endif //ENCODER_B_PINS
#define ENCODER_B_PINS { F5 }
#define ENCODER_DIRECTION_FLIP

#ifdef ENCODER_RESOLUTION
#undef ENCODER_RESOLUTION
#endif //ENCODER_RESOLUTION
#define ENCODER_RESOLUTION 4

#ifdef ENCODER_A_PINS_RIGHT
#undef ENCODER_A_PINS_RIGHT
#endif //ENCODER_A_PINS_RIGHT
#define ENCODER_A_PINS_RIGHT { F5 }

#ifdef ENCODER_B_PINS_RIGHT
#undef ENCODER_B_PINS_RIGHT
#endif //ENCODER_B_PINS_RIGHT
#define ENCODER_B_PINS_RIGHT { F4 }

#ifdef ENCODER_RESOLUTION_RIGHT
#undef ENCODER_RESOLUTION_RIGHT
#endif //ENCODER_RESOLUTION_RIGHT
Expand Down

0 comments on commit 5861947

Please sign in to comment.