1-Wire High Temperature Sersor (K-type)
Product Link (https://www.dfrobot.com)
SKU: SEN0656
1-Wire High Temperature Sersor (K-type)
To use this library, first download the library file, paste it into the \Arduino\libraries directory, then open the examples folder and run the demo in the folder. This library depends on the OneWire library. Please install OneWire before using this library. Download method: Arduino IDE → Tools → Manage Libraries, search for "OneWire" and install it.
/**
* @fn: begin
* @brief: Initialize object
* @return: 1 is returned if initialization succeeds, 0 is returned if initialization fails
*/
int begin();
/**
* @fn: getCelsius
* @brief: Read probe temperature data
* @return: float Temperature value (in degrees Celsius),Return NAN on failure.
*/
float getCelsius();
/**
* @fn: getUniqueAddr()
* @brief: Gets the 64-bit unique address of CT1780
* @return: Address data (array),Return NULL on failure.
*/
uint8_t* getUniqueAddr();
/**
* @fn: getConfigAddr()
* @brief: Get the user-configured address of CT1780 (in ScratchPad)
* @return: address data,Return -1 on failure.
*/
int getConfigAddr();
MCU | Work Well | Work Wrong | Untested |
---|---|---|---|
Arduino Uno | √ | ||
Mega2560 | √ | ||
Leonardo | √ | ||
ESP32 | √ | ||
ESP8266 | √ | ||
micro:bit | √ | ||
FireBeetle M0 | √ |
- 2025-03-07 - Version 1.0.0 released.
Written by fary([email protected]), 2025. (Welcome to our website)