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

Alarm module not included for rp2350? #9920

Open
moviebrain opened this issue Dec 28, 2024 · 2 comments
Open

Alarm module not included for rp2350? #9920

moviebrain opened this issue Dec 28, 2024 · 2 comments

Comments

@moviebrain
Copy link

This is going to be one of those issues where if I knew more I might not have to ask about it. I noticed that the 9.2.1 firmware for Pico 2 (rp2350) currently doesn't include the Alarm module. I briefly looked at the shared-bindings code in the repo (and I am completely incompetent w/ C) but I didn't see any code in there that looked specific to implementing alarms per-board.

Can I ask about progress or progression blocks for this module specific to the rp2350? Was it an intentional removal? Is there a better way to poll for a button press to wake from deep sleep with the newer chip that I'm unaware of w/ circuitpython?

Thanks in advance.

@dhalbert
Copy link
Collaborator

Sleep works differently on RP2350 than RP2040. We just haven't gotten around to it yet.

@Neradoc
Copy link

Neradoc commented Dec 28, 2024

Hi, if you're curious about the project structure, the port-specific implementations are found in the ports/<portname>/common-hal/ directories (and supporting libraries in the port directory). shared-bindings define the python interface to modules and shared-module common implementations.

Here is the rp2 implementation:
https://github.com/adafruit/circuitpython/tree/main/ports/raspberrypi/common-hal/alarm

And where it's disabled for 2350:

ifeq ($(CHIP_VARIANT),RP2350)
# This needs to be implemented.
CIRCUITPY_ALARM = 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants