jbechter / arduino-onewire-ds2438 Goto Github PK
View Code? Open in Web Editor NEWArduino OneWire DS2438 device library.
License: Other
Arduino OneWire DS2438 device library.
License: Other
DS2438 Arduino OneWire Library To install, download and rename the arduino-onewire-DS2438 folder to DS2438 and copy the DS2438 folder structure to your Arduino libraries folder. Requires Arduino 1.0 or greater and OneWire Arduino library (see http://playground.arduino.cc/Learning/OneWire). For additional information see http://projects.bechter.com
Just a warning: the changes to this library only work by coincidence; in a few places, pointers to stack variables are returned so the library often cannot read the sensor.
to fix: change
void DS2438::begin(uint8_t mode) { uint8_t addr[8];
to
void DS2438::begin(uint8_t mode) { static uint8_t addr[8];
also, 'void getAddress(uint8_t *addr);' should be a pointer to a pointer.
Hi.
I've found that when using only channel B to read VDD with the following setup:
ds2438.begin(DS2438_MODE_CHB | DS2438_MODE_TEMPERATURE)
it is not possible to read the temperature value.
I think I've found a solution but as I'm new to GitHub I'm not sure how to do it, so here's my patch:
in method update() change the following line:
boolean doTemperature = _mode & DS2438_MODE_TEMPERATURE & !(_mode & DS2438_MODE_CHA);
with this one:
boolean doTemperature = _mode & DS2438_MODE_TEMPERATURE && !(_mode & DS2438_MODE_CHA);
Hope this helps!
I have added a current read fonction on your library if you are interested you can contact me and say me how can i send my mod library to you ...
Thanks for you Library
Octopuss83
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.