I haven't dug too deeply into it myself (and am still struggling to set up the development environment), but there is code here:https://www.st.com/en/embedded-software/stm8-embedded-software.htmlI downloaded AN3281 "STM8 optimized I2C examples" and i...