Left for archival purposes.

User avatar
By devsaurus
#33197 I don't know of any examples, but you should start with the sample code at https://github.com/nodemcu/nodemcu-firm ... en#i2cread. You'll probably need to extend read_reg() to 2 bytes since ADS1115's registers are 16 bit
Code: Select allmsb, lsb = i2c.read(id, 2)

On top of that you'd need a write_reg() function that can be derived from read_reg().

Haven't done it though, but that's the approach I would try first.