Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added alarm features for DS3231#758

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mfulz wants to merge2 commits intotinygo-org:dev
base:dev
Choose a base branch
Loading
frommfulz:release

Conversation

@mfulz
Copy link

I've implemented missing features for DS3231 RTC similar likeRTClib

These can be used to set Alarm1 (alarm2 is missing), read alarm1, activate alarm1, use sqw for interrupts, etc.

@deadprogramdeadprogram changed the base branch fromrelease todevMay 20, 2025 13:33
@deadprogram
Copy link
Member

@conejoninja PTAL 😸

@conejoninja
Copy link
Member

it's on my backlog, i'll review it eventually

Copy link
Member

@conejoninjaconejoninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hello, thanks for your contribution, since you already did the work for Alarm1, does it make sense to add Alarm2 too?

Also, since we are at it, I would add a new example under /examples/ds3231 for the alarms, let's keep the one already as "basic" and another for the alarms. It would be great to show how to set an interrupt on TinyGo.

return
}

func (d*Device)GetSqwPinMode()SqwPinMode {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Exported functions need documentation

returnSqwPinMode(data[0])
}

func (d*Device)SetSqwPinMode(modeSqwPinMode)error {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This too, exported functions need documentation

// ALarm1 Modes
typeAlarm1Modeuint8

const (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Shouldn't be add Alarm2 too?

@mfulz
Copy link
Author

Hello, thanks for your contribution, since you already did the work for Alarm1, does it make sense to add Alarm2 too?

Also, since we are at it, I would add a new example under /examples/ds3231 for the alarms, let's keep the one already as "basic" and another for the alarms. It would be great to show how to set an interrupt on TinyGo.

Hi sure can do that stuff, if it's fine around 2-3 weeks as timeline. And of course alarm2, examples, docs will be added. Just wanted to make sure, that the PR will be accepted before doing the whole work :)

@conejoninja
Copy link
Member

Sure, we welcome every contribution, sometimes we are a bit slower reviewing changes, but we eventually get them done.

@gKits
Copy link

Hi@mfulz are you still actively working on this? I can assist if needed.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@conejoninjaconejoninjaconejoninja left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@mfulz@deadprogram@conejoninja@gKits

[8]ページ先頭

©2009-2025 Movatter.jp