Equip your Genius
Welcome to the Parallax Discussion Forums, sign-up to participate.
Learn with BlocklyProp
looking for i2c_1bus.spin file...
2018-05-31 - 06:38:23
I cant seem to find this file, "i2c_1bus.spin" that is being called for by Tracy Allen's code titled "ADS1115_1bus.spin" included as an attachment but also in a thread regarding the ADS1115.
2018-05-31 - 06:42:58
Thought I should mention that I searched the forums and google with and without site:parallax.com and came up with zilch.
2018-06-01 - 19:51:34
edited 2018-06-01 - 22:09:58
Here it is, zipped up with my ADS1115 code. I'm also attaching a demo of the SHT31 RHT sensor. The object i2c_1bus is all Spin, so relatively slow but no additional cog. It has evolved with time to incorporate some of the rarer twists of i2c protocol, such as the clock hold used by the SHT31. The ADS1115 code uses a parameter in the i2c.ReadNumber method to perform byte reversal: The chip sends numerical data
most significant byte first, the Propeller needs the opposite.
2018-06-01 - 20:59:28
Thank you! Much appreciated.