matmunk / DS18B20

Arduino library for the Maxim Integrated DS18B20 1-Wire temperature sensor.
MIT License
90 stars 32 forks source link

does it support parasitic power? #9

Closed youxiaojie closed 3 years ago

youxiaojie commented 3 years ago

does it support parasitic power?

matmunk commented 3 years ago

Hi @youxiaojie

Yes, it detects the power mode automatically. It even supports mixing devices with different power modes.

youxiaojie commented 3 years ago

1.if different type of sensors, 1822 18b20 18s20 in the same line, is it ok?

  1. 3 sensors in system, so It will initialize 3 instances from class and get temp then print it. the question is how do I which one represent which component? and if I remove one, how the program do? eg, I hope to show:points1:23C point2 25C point3 28C for 3 sensors, if the middle sensors is removed, I hope to show:points1:23C point2 NC point3 28C. could you give me some advice.
matmunk commented 3 years ago

Yes, I believe that should work fine. Please let me know if you encounter any problems.