openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.42k stars 249 forks source link

DS18x20 driver #1288

Closed divadiow closed 2 months ago

MaxineMuster commented 2 months ago

Maybe you want to take a look here:

https://github.com/MaxineMuster/OpenBK7231T_App/tree/DS1820

It's not the whole thing, but if you only want to use one device, it sort of works for me.

When I saw your try, I finally got the energy to fix my approach (the timing didn't work before, so I only read no values at all or only crap).

Since I don't have a logic analyzer I didn't see, what was wrong.

Finally I came up with the idea to give out an info about how long a sleep of XXX usecs was in ms (derived from xTicks) if the reset of the device failed, that did the trick to show, how wrong my expectations where.

This is just a proof of concept, showing the temp every 5 seconds in log ...