Update pmw3360 comments to match the datasheet better, fix delays. (#15682)
This commit is contained in:
		
							parent
							
								
									367e2bb0ff
								
							
						
					
					
						commit
						8b44eaa63e
					
				
					 4 changed files with 26 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -19,7 +19,7 @@ See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_to
 | 
			
		|||
 | 
			
		||||
## Revisions
 | 
			
		||||
 | 
			
		||||
There are two main revisions for the PloopyCo Tracball, everything up to 1.004, and 1.005-1.006.
 | 
			
		||||
There are two main revisions for the PloopyCo Trackball, everything up to 1.004, and 1.005-1.006.
 | 
			
		||||
 | 
			
		||||
In the 1.005 revision, button for was changed from pin B5 to B6, and the debug LED pin was changed from F7 to B5. 
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,7 @@ This should allow you to more heavily customize the behavior.
 | 
			
		|||
 | 
			
		||||
Alternatively, the `process_wheel` and `process_mouse` functions can both be replaced too, to allow for even more functionality.
 | 
			
		||||
 | 
			
		||||
Additionally, you can change the DPI/CPI or speed of the trackball by calling `pmw_set_cpi` at any time. Additionally, there is a `DPI_CONFIG` macro that will cycle through an array of options for the DPI.  This is set to 1200, 1600, and 2400, but can be changed.  1600 is also set to the default. 
 | 
			
		||||
Additionally, you can change the DPI/CPI or speed of the trackball by calling `pointing_device_set_cpi` at any time. Additionally, there is a `DPI_CONFIG` macro that will cycle through an array of options for the DPI.  This is set to 1200, 1600, and 2400, but can be changed.  1600 is also set to the default.
 | 
			
		||||
 | 
			
		||||
To configure/set your own array, there are two defines to use, `PLOOPY_DPI_OPTIONS` to set the array, and `PLOOPY_DPI_DEFAULT`. 
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -218,7 +218,7 @@ void keyboard_pre_init_kb(void) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void pointing_device_init_kb(void) {
 | 
			
		||||
    pmw3360_set_cpi(dpi_array[keyboard_config.dpi_config]);
 | 
			
		||||
    pointing_device_set_cpi(dpi_array[keyboard_config.dpi_config]);
 | 
			
		||||
    // initialize the scroll wheel's optical encoder
 | 
			
		||||
    opt_encoder_init();
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue