Adds support for JacoBurge's TouchPad (#4186)
* add touchpad * progress * working with leds and vibrations * adds readme * Update keyboards/touchpad/readme.md Co-Authored-By: jackhumbert <jack.humb@gmail.com> * updates
This commit is contained in:
		
							parent
							
								
									3cf179be61
								
							
						
					
					
						commit
						d28684da90
					
				
					 8 changed files with 480 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -179,6 +179,9 @@ i2c_status_t i2c_readReg(uint8_t devaddr, uint8_t regaddr, uint8_t* data, uint16
 | 
			
		|||
  status = i2c_write(regaddr, timeout);
 | 
			
		||||
  if (status) return status;
 | 
			
		||||
 | 
			
		||||
  status = i2c_stop(timeout);
 | 
			
		||||
  if (status) return status;
 | 
			
		||||
 | 
			
		||||
  status = i2c_start(devaddr | 0x01, timeout);
 | 
			
		||||
  if (status) return status;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -217,4 +220,4 @@ i2c_status_t i2c_stop(uint16_t timeout)
 | 
			
		|||
  }
 | 
			
		||||
 | 
			
		||||
  return I2C_STATUS_SUCCESS;
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue