Advertisement
Guest User

Untitled

a guest
Dec 8th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. void TM_I2C_Write2(I2C_TypeDef* I2Cx, uint8_t address, uint8_t command) {
  2.     TM_I2C_Start(I2Cx, address, I2C_Direction_Transmitter, 0);
  3.     TM_I2C_WriteData(I2Cx, command);
  4.     TM_I2C_Stop(I2Cx);
  5. }
  6.  
  7. //Usage
  8. TM_I2C_Init..  
  9. TM_I2C_Write2(0x80, yourcommand);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement