denkitronik / ADS1118

Arduino Library for Texas Instruments ADS1118 - 16-Bit Analog-to-Digital Converter with internal Reference and Temperature Sensor
MIT License
20 stars 15 forks source link

getMilliVoltsNoWait(uint8_t pin_drdy, double &volts); function, How can I use it? #17

Open escape2cosmose opened 11 months ago

escape2cosmose commented 11 months ago

Hello~

Arduino mega (ATmega2560)

  1. I used getMilliVolts() function to read voltage of DIFF_0_1 and it works well but it needs totally 257ms. ??? Does this function need long execution time?

  2. How can I use getMilliVoltsNoWait() function ? I can't understand parameters, (uint8_t pin_drdy, double &volts)

double Vtc1 = 0; int drdy = 50; // PB3 bool b_return = getMilliVoltsNoWait(drdy, &Vtc1); // it makes error in compiling.

Anybody help~