junkfix / esp32-ds18b20

Arduino Library for ESP32 DS18B20 Non Blocking Onewire RMT protocol, no dependencies, minimal
MIT License
15 stars 4 forks source link

resolution #4

Closed Mizar03110 closed 9 months ago

Mizar03110 commented 9 months ago

Hi, I'd like to work with highest possible resolution (12 bits I think), but I didn't found in your library how to get/set the resolution. Can you please tell me how to do that ? Thanks, Jérôme

htmltiger commented 9 months ago

Its on highest 12bit by default.

to use lower res you need to modify getTemp function see how it works https://github.com/PaulStoffregen/OneWire/blob/386a8d0715781fd38a61c7f0a753c2f988a2abca/examples/DS18x20_Temperature/DS18x20_Temperature.ino#L98

Mizar03110 commented 9 months ago

Ok. Thank you very much

Le jeu. 28 sept. 2023 à 12:15, htmltiger @.***> a écrit :

Its on highest 12bit by default.

to use lower res you need to modify getTemp function see how it works

https://github.com/PaulStoffregen/OneWire/blob/386a8d0715781fd38a61c7f0a753c2f988a2abca/examples/DS18x20_Temperature/DS18x20_Temperature.ino#L98

— Reply to this email directly, view it on GitHub https://github.com/htmltiger/esp32-ds18b20/issues/4#issuecomment-1738868577, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4N2PBOWAHVFWUQAYC4CH3X4VE35ANCNFSM6AAAAAA5KVQLRA . You are receiving this because you authored the thread.Message ID: @.***>