moderndevice / LibHumidity

Modern Device SHT21 humidity and temp sensor library
3 stars 3 forks source link

Non blocking #1

Open nanthony21 opened 9 years ago

nanthony21 commented 9 years ago

Is there a way to use this library in a non blocking way? The fact the the sensor takes about 0.1 seconds to do a measurement causes problems if the processor has multiple tasks to perform. This library (http://playground.arduino.cc/Code/Sensirion#Example) has a non blocking method but it is very bulky and doesn't use proper I2C.

moderndevice commented 9 years ago

anthony,

There may be but I don't have time for a code effort just now - it will be about two weeks.

Part of the problem is that I2C can by timing sensitive with it's writes.

Maybe try an interrupt to service your other issues?

Paul Badger Modern Device

On Jun 4, 2015, at 11:46 AM, nanthony21 notifications@github.com wrote:

Is there a way to use this library in a non blocking way? The fact the the sensor takes about 0.1 seconds to do a measurement causes problems if the processor has multiple tasks to perform. This library (http://playground.arduino.cc/Code/Sensirion#Example) has a non blocking method but it is very bulky and doesn't use proper I2C.

— Reply to this email directly or view it on GitHub.