looking for i2c_1bus.spin file...

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.
Jorge P.

Comments

  • 3 Comments sorted by Date Added Votes
  • Thought I should mention that I searched the forums and google with and without site:parallax.com and came up with zilch.
    Jorge P.
  • Tracy AllenTracy Allen Posts: 6,276
    edited June 1 Vote Up1Vote Down
    Hi Jorge,
    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 least most significant byte first, the Propeller needs the opposite.
  • Thank you! Much appreciated.
    Jorge P.
Sign In or Register to comment.