enjoyneering / HTU21D

This is an Arduino library for HTU21D, Si7021 and SHT21 Digital Humidity & Temperature Sensor
56 stars 15 forks source link

Use of Delays #9

Closed Raphael909 closed 4 years ago

Raphael909 commented 4 years ago

Hello, Not an issue but a quick question. I was wondering what would be the reason for using blocking code i.e use of delay function while calculating Temperature and Humidity.

I was thinking to go Non blocking using millis. Also not sure how you got to those number for delays for different resolution. What are your thoughts ?

Thank you for your effort and putting this wonderful library in public domain.

enjoyneering commented 4 years ago

Hi,

Delay is simpler and code is cleaner. You definitely can use millis().