Post your best Lua script examples here

User avatar
By piersfinlayson
#55890
martinayotte wrote:Yes, some manufacturers specify their device address including the R/W, and some other not ...


NXP and TI don't (at least for these devices). The I2C spec is also clear there's the address (7 bits) and then the data direction (rw) bit which.
User avatar
By martinayotte
#55892 Not really, the TI PCF8574 datasheet I have (SCPS068J – JULY 2001 – REVISED MARCH 2015) is clearly showing 0x40 (decimal 64) on page 13.

The NXP datasheet I have (Rev. 5 — 27 May 2013) showing both 7 and 8 bits values on page 5.

But I don't bother since I'm fluent about reading specs and I always pay attention to such R/W details. :ugeek: