Skip to content

Add pin to PinAlarm object after deep sleep on raspberry pi pico #9372

Open
@Levtastic

Description

@Levtastic

Currently on a raspberry pi pico after a deep sleep the alarm.wake_alarm object has a None in the pin attribute because finding the correct pin has not yet been implemented (see below)

mp_obj_t alarm_pin_pinalarm_record_wake_alarm(void) {
alarm_pin_pinalarm_obj_t *const alarm = &alarm_wake_alarm.pin_alarm;
alarm->base.type = &alarm_pin_pinalarm_type;
// TODO: how to obtain the correct pin from memory?
alarm->pin = NULL;
return alarm;
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions