Article
Arduino温度传感器lib git 库DS18B20 Dallas Temperature Control DallasTemperature函数库
Arduino Library for Maxim Temperature Integrated Circuits
Usage
This library supports the following devices :
DS18S20 - Please note there appears to be an issue with this series.
DS1822
DS1820
MAX31820
You will need a pull-up resistor of about 5 KOhm between the 1-Wire data line and your 5V power. If you are using the DS18B20, ground pins 1 and 3. The centre pin is the data line '1-wire'.
We have included a "REQUIRESNEW" and "REQUIRESALARMS" definition. If you want to slim down the code feel free to use either of these by including
#define REQUIRESNEW
or
#define REQUIRESALARMS
at the top of DallasTemperature.h
Finally, please include OneWire from Paul Stoffregen in the library manager before you begin.
以上是git库的readme.md介绍,详情访问:
https://github.com/milesburton/Arduino-Temperature-Control-Library