Skip to content

Commit

Permalink
Adjust keyboards to PMW33XX naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlK90 committed Jul 14, 2022
1 parent b93b1a9 commit 4aa2c5a
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 33 deletions.
4 changes: 2 additions & 2 deletions keyboards/bastardkb/charybdis/3x5/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
/* Set 0 if debouncing isn't needed. */
#define DEBOUNCE 5

/* PMW3360 settings. */
#define PMW3360_CS_PIN B0
/* PMW33XX settings. */
#define PMW33XX_CS_PIN B0

// Trackball angle adjustment.
#define ROTATIONAL_TRANSFORM_ANGLE -25
Expand Down
6 changes: 2 additions & 4 deletions keyboards/bastardkb/charybdis/3x5/keymaps/drashna/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// #define EXTERNAL_EEPROM_ADDRESS_SIZE 2

/* pmw3360 config */
#undef PMW3360_CS_PIN
#define PMW3360_CS_PIN B0
#define PMW3360_SPI_MODE 3
#define PMW3360_SPI_DIVISOR 64
#undef PMW33XX_CS_PIN
#define PMW33XX_CS_PIN B0

#define CHARYBDIS_MINIMUM_DEFAULT_DPI 1200
#define CHARYBDIS_DEFAULT_DPI_CONFIG_STEP 400
Expand Down
4 changes: 2 additions & 2 deletions keyboards/bastardkb/charybdis/4x6/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5

/* PMW3360 settings. */
#define PMW3360_CS_PIN B0
/* PMW33XX settings. */
#define PMW33XX_CS_PIN B0

#define RGB_DI_PIN D3
#define RGBLED_NUM 56
Expand Down
8 changes: 3 additions & 5 deletions keyboards/bastardkb/charybdis/4x6/keymaps/drashna/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@
#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A4
#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 64

#undef PMW3360_CS_PIN
#define PMW3360_CS_PIN A15 // b14
#define PMW3360_CS_MODE 3
#define PMW3360_CS_DIVISOR 64
#define PMW3360_LIFTOFF_DISTANCE 0b1111
#undef PMW33XX_CS_PIN
#define PMW33XX_CS_PIN A15 // b14
#define PMW33XX_LIFTOFF_DISTANCE 0b1111
#undef ROTATIONAL_TRANSFORM_ANGLE
#define ROTATIONAL_TRANSFORM_ANGLE -65

Expand Down
2 changes: 1 addition & 1 deletion keyboards/bbrfkr/dynamis/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
#define ENCODERS_PAD_A { B7 }
#define ENCODERS_PAD_B { E6 }

#define PMW3360_CS_PIN SPI_SS_PIN
#define PMW33XX_CS_PIN SPI_SS_PIN
#define POINTING_DEVICE_INVERT_Y
4 changes: 2 additions & 2 deletions keyboards/handwired/tractyl_manuform/4x6_right/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

/* PMW3360 Settings */
#define PMW3360_CS_PIN B0
/* PMW33XX Settings */
#define PMW33XX_CS_PIN B0

#define POINTING_DEVICE_RIGHT
2 changes: 1 addition & 1 deletion keyboards/handwired/tractyl_manuform/4x6_right/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"url": "",
"maintainer": "drashna",
"layouts": {
"LAYOUT_5x6_right": {
"LAYOUT_4x6_right": {
"layout": [
{"label":"L00", "x":0, "y":0},
{"label":"L01", "x":1, "y":0},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS_PAD_B \
{ C7 }

/* PMW3360 Settings */
#define PMW3360_CS_PIN B6
/* PMW33XX Settings */
#define PMW33XX_CS_PIN B6
5 changes: 2 additions & 3 deletions keyboards/handwired/tractyl_manuform/5x6_right/f303/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// #define DEBUG_EEPROM_OUTPUT

/* pmw3360 config */
#define PMW3360_CS_PIN B9
#define PMW3360_SPI_MODE 3
#define PMW3360_SPI_DIVISOR 8
#define PMW33XX_CS_PIN B9
#define PMW33XX_SPI_DIVISOR 8
5 changes: 1 addition & 4 deletions keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 64

/* pmw3360 config */
#define PMW3360_CS_PIN B0
#define PMW3360_SPI_MODE 3
#define PMW3360_SPI_DIVISOR 64
#define PMW3360_FIRMWARE_UPLOAD_FAST
#define PMW33XX_CS_PIN B0
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS_PAD_B \
{ D4 }

/* PMW3360 Settings */
#define PMW3360_CS_PIN B0
/* PMW33XX Settings */
#define PMW33XX_CS_PIN B0
2 changes: 1 addition & 1 deletion keyboards/oddball/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@
// #define BOOTMAGIC_LITE_COLUMN 0

#define ADNS9800_CS_PIN SPI_SS_PIN
#define PMW3360_CS_PIN SPI_SS_PIN
#define PMW33XX_CS_PIN SPI_SS_PIN
4 changes: 2 additions & 2 deletions keyboards/ploopyco/mouse/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@

// #define DEBUG_LED_PIN F7

/* PMW3360 Settings */
#define PMW3360_CS_PIN B0
/* PMW33XX Settings */
#define PMW33XX_CS_PIN B0
4 changes: 2 additions & 2 deletions keyboards/ploopyco/trackball/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
// If board has a debug LED, you can enable it by defining this
// #define DEBUG_LED_PIN F7

/* PMW3360 Settings */
#define PMW3360_CS_PIN B0
/* PMW33XX Settings */
#define PMW33XX_CS_PIN B0
#define POINTING_DEVICE_INVERT_Y

0 comments on commit 4aa2c5a

Please sign in to comment.