| Posted: 07:52am 17 Apr 2026 |
|
|
|
This line, instead of a Pause...Do :I2C2 read I2C.addr,0,1,Re$:Loop Until MM.I2C<>1 will let the chip take as much time as it needs but no more.
Footnote added 2026-04-17 18:44 by phil99 In view of Peters comment below perhaps this could be used instead.
t=timer :Do :I2C2 read I2C.addr,0,1,Re$:Loop Until MM.I2C<>1 Or timer-t >6 |