Giter VIP home page Giter VIP logo

ds1624's People

Contributors

bluemurder avatar per1234 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ds1624's Issues

Address calculation

Totally new on arduino. Actually DS1624 is my first test project.

Though when I play with the DS1624 address pins, I found there might be an error on line 51:

_address = 0x48 + (addressByPins & 0xf8);

With this calculation, any input address from 0x00 to 0x07 will result _address = 0x48.

I changed the code to:

_address = 0x48 + (addressByPins & 0x07);

and the code tests okay.

Error in constructor

I found an error in the constructor of the DS1624 class
Currently the code will only work with address 0

this line:
_address = 0x48 + (addressByPins & 0xf8);
should be:
_address = 0x48 + (addressByPins & 0x07);
to make the other addresses available.

Add Arduino Due support

Need to modify library to support Arduino Due platform as in following example

/*----( These lines allow code to work also on Arduino DUE )----- */
#ifdef AVR
  Wire.begin();
#else
  Wire1.begin(); // Shield I2C pins connect to alt I2C bus on Arduino Due
#endif

Library overhaul

Hello, @bluemurder!

First of all, thanks for making this library available. Recently I've had the opporunity to test it against real hardware. Sadly it did not seem to work properly and some functionality is missing (like EEPROM reading/writing). So I've modified the code (and tested) to fix some issues and to add such functionality.

It would be great if you merged these changes so people working with the DS1624 can do it easily. The examples were updated as well and are working. I can make a PR right away.

Thanks!

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.