Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void TM_I2C_Write2(I2C_TypeDef* I2Cx, uint8_t address, uint8_t command) {
- TM_I2C_Start(I2Cx, address, I2C_Direction_Transmitter, 0);
- TM_I2C_WriteData(I2Cx, command);
- TM_I2C_Stop(I2Cx);
- }
- //Usage
- TM_I2C_Init..
- TM_I2C_Write2(0x80, yourcommand);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement