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

CircuitPython RV3028 Implementation #40

Open
5 tasks
Mikefly123 opened this issue Oct 14, 2024 · 1 comment
Open
5 tasks

CircuitPython RV3028 Implementation #40

Mikefly123 opened this issue Oct 14, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Mikefly123
Copy link
Member

Mikefly123 commented Oct 14, 2024

Planned Features

We're adding an rv3028.py to the CircuitPython lib folder and folding in use of the Real Time Clock into pysquared.py.

The primary things we want it to accomplish are as follows:

  • Get and Set the Time
  • Set and Check an Alarm
  • Check for Events Through the EVI Function
  • Manage the Trickle Charger
  • Sustain Time and Date Through Resets

Required Hardware

A FC Board V4b or higher or a BB V3b or higher is required to use the Real Time Clock.

@Mikefly123 Mikefly123 added enhancement New feature or request good first issue Good for newcomers labels Oct 14, 2024
@Mikefly123
Copy link
Member Author

Getting and Setting Time

So far, I have already added this functionality in Commit #be88cd7 it just now needs to be tested!

You should be able to do the following:

from pysquared import cubesat as c

print(c.time) # prints current time
c.time(hours, minutes, seconds) # sets current time

print(c.date) # returns current date
c.date(year, month, day, weekday) # sets current date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant