GPIO Toggle Question
Really appreciate the help Bab! Now, that the start condition is clarified, this leads me to my next objective. I'm supposed to read from the device. The register 0x01 should have the value 0xAC as an ACK to let me know that the STA013 decoder is present. I used both:
HAL_I2C_Master_Receive(&hi2c3, reg, &data, 1, 100);
&
HAL_I2C_Mem_Read(&hi2c3, 0x86, reg, I2C_MEMADD_SIZE_8BIT, &data, 1, 10);
With reg having the value of 0x01. But, neither of those returned back the correct value. Do you know which of the two functions is the correct one? And do you see anything wrong in what I wrote?