delayMicroseconds() doesn't work in ADS1115 library

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_bill
 
Posts: 87846
Joined: Sat Feb 07, 2009 10:11 am

Re: delayMicroseconds() doesn't work in ADS1115 library

Post by adafruit_support_bill »

Never mind - here is the problem:

Code: Select all

   uint8_t   m_conversionDelay;
The max value for a uint8_t is 255. If you make that a uint16_t it should behave better for you.

User avatar
xhr0428
 
Posts: 18
Joined: Thu Aug 14, 2014 7:50 pm

Re: delayMicroseconds() doesn't work in ADS1115 library

Post by xhr0428 »

adafruit_support_bill wrote:Never mind - here is the problem:

Code: Select all

   uint8_t   m_conversionDelay;
The max value for a uint8_t is 255. If you make that a uint16_t it should behave better for you.
Sorry I didn't notice this post until yesterday.
Yes, I changed it to unit16_t, it worked. Thank you!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”