mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 13:22:31 +01:00 
			
		
		
		
	Fix TWI peripheral driver example code in the library documentation.
This commit is contained in:
		
							parent
							
								
									9708b45e69
								
							
						
					
					
						commit
						af725dd418
					
				| @ -99,14 +99,14 @@ | |||||||
|  *      uint8_t WritePacket[3] = {0x01, 0x02, 0x03}; |  *      uint8_t WritePacket[3] = {0x01, 0x02, 0x03}; | ||||||
|  * |  * | ||||||
|  *      TWI_WritePacket(0xA0, 10, &InternalWriteAddress, sizeof(InternalWriteAddress), |  *      TWI_WritePacket(0xA0, 10, &InternalWriteAddress, sizeof(InternalWriteAddress), | ||||||
|  *                      &WritePacket, sizeof(WritePacket); |  *                      WritePacket, sizeof(WritePacket); | ||||||
|  * |  * | ||||||
|  *      // Start a read session to device at address 0xA0, internal address 0xDC with a 10ms timeout
 |  *      // Start a read session to device at address 0xA0, internal address 0xDC with a 10ms timeout
 | ||||||
|  *      uint8_t InternalReadAddress = 0xDC; |  *      uint8_t InternalReadAddress = 0xDC; | ||||||
|  *      uint8_t ReadPacket[3]; |  *      uint8_t ReadPacket[3]; | ||||||
|  * |  * | ||||||
|  *      TWI_ReadPacket(0xA0, 10, &InternalReadAddress, sizeof(InternalReadAddress), |  *      TWI_ReadPacket(0xA0, 10, &InternalReadAddress, sizeof(InternalReadAddress), | ||||||
|  *                     &ReadPacket, sizeof(ReadPacket); |  *                     ReadPacket, sizeof(ReadPacket); | ||||||
|  *  \endcode |  *  \endcode | ||||||
|  * |  * | ||||||
|  *  @{ |  *  @{ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera