Skip to content
Dallas One-Wire temp sensor DS18XXX Particle Photon
Branch: master
Clone or download
Pull request Compare This branch is 8 commits ahead of LukeUSMC:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Implicit one-time search for singleDrop Nov 28, 2017
src unsigned cast caused neg. celsius to fail Mar 30, 2019
verified Update Nov 30, 2016
.gitattributes :octocat: Added .gitattributes & .gitignore files Oct 10, 2015
.gitignore :octocat: Added .gitattributes & .gitignore files Oct 10, 2015
LICENSE Added P1 support, minor updates Feb 22, 2016 unsigned cast caused neg. celsius to fail Mar 30, 2019

#DS18B20 Library for Particle Core, Photon and P1 Modified DS18BXX Lib copied from Sample application using Particle Photon and Dallas DS18B20 Digital Temperature Sensor. The OneWire source code is taken from this link by @tidwelltimj. I just separated this into two classes OneWire and DS18B20. The sample code publishes a variable named tmpinfo with temperature value.

Requires Particle-OneWire (included) from Wiring: Power to 3.3/5V GND to GND Signal to D2 (with 4.7k pullup resistor)

Use crcCheck() to verify the sensor was successfully read.

You can’t perform that action at this time.