Skip to content

Simple encapsulation library for [DallasTemperature](https://github.com/milesburton/Arduino-Temperature-Control-Library) library, used for hiding OneWire and global variables.

License

Notifications You must be signed in to change notification settings

dmaixner/esp8266-dallassensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeMCU ESP8266 Dallas Sensor encapsulation library

Simple encapsulation library for DallasTemperature library, used for hiding OneWire and global variables.

Usage

#include <DallasSensor.h>

void setup()
{
    Serial.begin(9600);
    Dallas.begin(13); // 13 => data pin
    Dallas.printInfo();
}

void loop()
{
    Dallas.readTemperatures();
    Serial.println("Temperature: " + String(Dallas.getTemperature(0))); // 0 => index of the first sensor
    delay(60000);
}

About

Simple encapsulation library for [DallasTemperature](https://github.com/milesburton/Arduino-Temperature-Control-Library) library, used for hiding OneWire and global variables.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages