Giter Site home page Giter Site logo

Add support for other HW RTCs about acetime HOT 12 CLOSED

bxparks avatar bxparks commented on July 18, 2024
Add support for other HW RTCs

from acetime.

Comments (12)

bxparks avatar bxparks commented on July 18, 2024

Hi, Thanks for the suggestions! Unfortunately, I don't have the DS1307 or the DS3232, and I don't feel comfortable adding untested code. But if someone who can actually test on those chips wants to contribute some code, I'd be happy to look at the PR.

from acetime.

Naguissa avatar Naguissa commented on July 18, 2024

Hello again,

I don't have none of them, but if you check datasheets DS3232 have just same control registers as DS3231, the only change is that it adds some SRAM after all control registers (same kind of SRAM as old DS1307 has).

Cheers!

from acetime.

bxparks avatar bxparks commented on July 18, 2024

Yeah... I don't work like that, I only publish tested code.
I'll keep this issue open in case I get my hands on one of these other chips, or someone else contributes some code. If these other chips are as close to the DS3231 as you say, then it should be easy for someone to modify my current code for those chips.

from acetime.

Naguissa avatar Naguissa commented on July 18, 2024

Perfect!

Let's hope anyone can test it, it'squite simple but you need the real hardware.

But one note, the identical one is DS3232, the other one changes a little.

Cheers!

from acetime.

Naguissa avatar Naguissa commented on July 18, 2024

Other thing: I'll try to add the code and make a PR, but I cannot test it.

from acetime.

bxparks avatar bxparks commented on July 18, 2024

But if you can't test it yourself, I'd be reluctant to accept that PR...

from acetime.

Naguissa avatar Naguissa commented on July 18, 2024

Can'tyou make a branch and ask any user to test it?

from acetime.

bxparks avatar bxparks commented on July 18, 2024

But why would I want to deal with the extra hassle and support requests from the users, for a chip that I don't have and can't test on? I wrote this for fun and for what I need, not because I want to provide free support for users.

I'd be willing to accept your PR if you put a big warning "THIS IS UNTESTED", and you placed your email address in it so that people can send you support requests. :-)

from acetime.

Naguissa avatar Naguissa commented on July 18, 2024

I'll do! even adding a compiler message.

PS: I'm CTO in a company, Arduino and electronics is only my hobby.

from acetime.

Naguissa avatar Naguissa commented on July 18, 2024

Checked. No code change is needed, only adding compatibility info.

from acetime.

Naguissa avatar Naguissa commented on July 18, 2024

(Oh! And I've made a PR. Consider changing the texts to fit your wishes)

from acetime.

bxparks avatar bxparks commented on July 18, 2024

Merged 834fe7a. I think we can close this?

from acetime.

Related Issues (20)

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.