Giter VIP home page Giter VIP logo

arduino-onewire-ds2438's Introduction

arduino-onewire-ds2438's People

Contributors

jbechter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arduino-onewire-ds2438's Issues

Bug: pointers to the stack being used.

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.

Reading temperature when using only channel B

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!

Added : Current measure

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

DS2438.zip

Octopuss83

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.