Giter Club home page Giter Club logo

lm75's People

Contributors

thefekete avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lm75's Issues

Texas Instruments LM75B will not wake from shutdown

Hello!
First, let me thank you for uploading your library! :)

There seems to be a little problem with the power down mode on the LM75B from TI.

After enabling the shut down and then disabling it it will not update the temperature annymore.
The Thyst and Tost registers cann still be read and be written to though.
As far as i can make it out, it should work just fine, but i am not that smart ;^^

Maybe you can have a look, i am using the demo code from the library without anny changes.

Greetings,
Peter

Negative temperature values calculated incorrectly

Hi,

First of all thank you very much for this library.

I think the library shows incorrect temperature when the temp is negative. According the LM75 datasheets the most significant bit (D15) contains 1 when value is negative.

In your case the temp value should be subtracted by 0x100 to get the right (negative) value.

float LM75::regdata2floattemp (word regdata)
{
  float temp = ((float)(int)regdata / 32) / 8;
  if (regdata >> 15) temp -= 0x100;
  return temp;
}

Also think that D0..D6 (don't care bits) should be masked. Not sure though...

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.