-->
Page 1 of 1

ADS1115 - can anyone help to run this on ESP8266?

PostPosted: Thu Nov 05, 2015 4:46 am
by pjw
Hi, I am looking for a help to run ADS1115 on ESP8266, on Espruino it is working very well.
Did anyone run this already on ESP? or have idea how to deal with it?

Re: ADS1115 - can anyone help to run this on ESP8266?

PostPosted: Thu Nov 05, 2015 6:07 pm
by devsaurus
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.

Re: ADS1115 - can anyone help to run this on ESP8266?

PostPosted: Tue Jan 26, 2016 7:53 pm
by pjw
any updates?
anyone knows how to run ADS on LUA?