leomil72 / swRTC

swRTC is a library that implements a software-RTC on an Arduino board or an Atmel microcontroller
36 stars 16 forks source link

Readme file, statement regarding deltaT parameter #2

Closed pcharest2000 closed 8 years ago

pcharest2000 commented 10 years ago

In the readme file you state:

If your RTC is faster than the real time, try adjusting deltaT with positive values, if your RTC is slower, try a deltaT with a negative values.

I looked at the implementation and did some test (not extensive) I beleive it is the opposite around, with a positive delta you are incrementing CounterT thus making the time faster... and the opposite for negative values. This implementation is intuitive can yo verify I am wrong.

Also I have modified the code so it can run on a 20Mhz crystal (on AttinyX4 at the same multiplier as per 16Mhz. How do I submit this code I am new to GIT.

By the way great work, I am using your library (wiouth arduino) for a VFD clock)

Phil

leomil72 commented 8 years ago

You're right. Your issue also lead me to find another bug into the code. Thanks.