Comments (7)
You are correct, I don't know how that slipped by me!
from ds3231m.
I have made a some changes to the code which make this pull request a bit of a chore to integrate, so I am going to add your code to my branch and integrate that..
from ds3231m.
I've added the changes, having changed the code just a little bit to stay backwards-compatible. I'll draft a new 1.0.7 release that will include this additional functionality as well. Thanks!
from ds3231m.
thanks for you!
I believe that writeByte(DS3231M_CONTROL, readByte(DS3231M_CONTROL) & ~B00111000); line 528
should be writeByte(DS3231M_CONTROL, readByte(DS3231M_CONTROL) & ~B00011100);
in writeByte(DS3231M_CONTROL, (readByte(DS3231M_CONTROL) & ~B00111000) | (rate | B00000011) << 3); line 540
should be writeByte(DS3231M_CONTROL, (readByte(DS3231M_CONTROL) & ~B00011100) | (rate & B00000011) << 3);
in the next few days I will prove this.
from ds3231m.
I forgot to highlight the change between the "or" and "and" in the previous comment, line 540, otherwise the output would always be 8khz
sorry
from ds3231m.
I have tested today on arduino nano and it works as expected pinSquareWave () and pinSquareWave (const uint8_t rate) .
thanks!
from ds3231m.
That's great news - I'm glad we could make the library work better.
from ds3231m.
Related Issues (20)
- Doc example error ? HOT 1
- The SETDATE typed input fails due to the inputBuffer being shared (on Arduino Uno) HOT 2
- the bug of HOUR writing&reading HOT 4
- no way to tell whether the clock is set. HOT 1
- Reformat source code to clang-format HOT 1
- .adjust() not setting the correct time HOT 12
- Make directory structure adhere to Arduino 1.5.x and later structure HOT 1
- Link to Maxim on wiki pages is broken HOT 1
- dayOfTheWeek() has incorrect range HOT 2
- Calculate leap year HOT 3
- How to stop an defined alarm HOT 10
- STM32 cant upload again HOT 2
- Add support for 400KHz bus speed HOT 1
- Fix overflow on I2C speed definitions HOT 1
- Implement Travis-CI
- Update "SetAlarms.ino" to Doxygen-style comments and formatting HOT 1
- Change "Set.ino" to doxygen style comments and formatting HOT 1
- Change library source files to Doxygen-style comments and formatting HOT 1
- logic on pinAlarm and pinSquareWave are inverted HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ds3231m.