<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 5, 2023 at 11:22 AM Jean SUZINEAU via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">May be you could get the source code of i2ctransfer from i2c-tools and <br>
compare it with the code in i2c.pas ?<br></blockquote><div><br></div><div>Good idea,  that led to the suggestion to try the WriteBytes method which is similar to how i2ctransfer constructed the i2c transaction.  Hopefully the change to the WriteBytesToReg methods also fixes the original problem, since it is a little bit more convenient to work with.<br></div></div></div>