DS18B20 Temperature Sensor Interrupt

Hi.

I checked the Dallas library and it uses delays so it stop the microcontroller.

Is there any library who use interrupts to retrieve temperature from that sensor?

There is a function in the library that allows you to avoid the delay: setWaitForConversion. You have to manage the wait yourself using millis, but it lets you do other work while you're waiting.

I was trying to program the interrupts but Im leaving. I am going to use another microcontroller to handle the polling.

This code does not work. I left here if someone want to use it or take as a reference.

temperature1wire.cpp (7.24 KB)

temperature1wire.h (1.01 KB)