Skip to content

Commit

Permalink
Partially merge PR to fix trackball rotational range
Browse files Browse the repository at this point in the history
- qmk#15431: Expand rotational range for PMW3360 Optical Sensor
  • Loading branch information
0xcharly committed Feb 6, 2022
1 parent 8c7b1d7 commit 42362ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sensors/pmw3360.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ bool pmw3360_init(void) {

spi_write_adv(REG_Config2, 0x00);

spi_write_adv(REG_Angle_Tune, constrain(ROTATIONAL_TRANSFORM_ANGLE, -30, 30));
spi_write_adv(REG_Angle_Tune, constrain(ROTATIONAL_TRANSFORM_ANGLE, -127, 127));

spi_write_adv(REG_Lift_Config, PMW3360_LIFTOFF_DISTANCE);

Expand Down

0 comments on commit 42362ad

Please sign in to comment.