Comments (5)
What is your Python version?
from pydigitemp.
I am using Python 2.7.10 for this.
I just found the solution -- my bad!
From staring at the pydigtemp code, the DS1820 class looks like it is intended to work with the DS18S20 (but I have not DS18S20 chips, so can't test this). However, the DS1820 class does not work with the DS18B20 chip. Then I stumbled over the DS18B20 class, which works with the DS18B20 chip works like a charm. So the code is all good and works as it is!
However, the example code given in the README file should propably be a bit more explicit about which class to use for which chips. From the README I was under the impression that the DS1820 class is intended to work with all DS18x20 chips (DS1820, DS18S20, DS18B20 and maybe others).
As far as I can tell:
- DS1820 and DS18S20 chips work with DS1820 class
- DS18B20 chip works with the DS18B20 class
from pydigitemp.
Could you please change
from digitemp.device import DS1820
to
from digitemp.device import DS18B20
and check if it works?
Note that B in the class name: DS18B20
from pydigitemp.
Yes, that works (see above). Just crossed messages...
from pydigitemp.
Thanks! I'll update the REAME to make it clear what class shall be used in what case.
e17a729
from pydigitemp.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydigitemp.