Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test bed for new pull #22

Merged
merged 4 commits into from
Jul 7, 2018
Merged

Test bed for new pull #22

merged 4 commits into from
Jul 7, 2018

Conversation

SV-Zanshin
Copy link
Collaborator

Changes needed to be done to the merged pull in order for the existing example jobs to run correctly

wvmarle and others added 3 commits July 6, 2018 18:20
* Added special register bits by name.
Added functions to set/read/write specific bits into registers.
Moved alarm polarity setting to separate function setAlarmPolarity(const bool polarity) (so not to break existing uses of this libary).
Optimised the setAlarm function.
Changes in many functions that deal with setting/clearing/reading/writing single bits to the registers.
Removed the wire.available() calls as they're redundant (the number of bytes is guaranteed by wire.requestFrom()).
Marked a few FIXMEs at places that need attention.

* Updated, tested/corrected setAlarm().
Updated, tested setAlarmPolarity().
Updated, tested weekdayRead() & weekdayWrite(const uint8_t dow).
Fixed bug in dayOfTheWeek() - it was a day off due to incorrect calculation.
Updated getMFP() to allow for the other options. Returns value 0-3:
    0 = pin set LOW.
    1 = pin set HIGH.
    2 = pin controlled by alarms.
    3 = pin controlled by square wave output.
Updated, tested setMFP().
Updated, tested setSQWSpeed(). Added support for 64 Hz square wave output.
Updated, tested getPowerFail() & clearPowerFail().
@SV-Zanshin SV-Zanshin merged commit 31a92f7 into master Jul 7, 2018
The new pull had problems with regression. Example jobs no longer ran or no longer ran correctly. Fixed issues introduced in pull and also corrected issues encountered when writing more then 32 bytes to the MCP7940 using the library methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant